# GSM

## 1. Nguyên lý hoạt động

* Hệ thống GSM có 2 môi trường: **Production** và **Development**
* **Production:** thường chứa dữ liệu của user thật, được quản trị bởi trang: [admin.cscmobicorp.com](https://admin.cscmobicorp.com) . Chính vì vậy không nên đưa dữ liệu test, hay cheat vào môi trường này.
* **Development**: thường chứa dữ liệu test, được quản trị bởi trang: [admindev.cscmobicorp.com](https://admindev.cscmobicorp.com) trong quá trình phát triển các tính năng thì nên đưa dữ liệu đó vào môi trường này.&#x20;

<figure><img src="https://2104621774-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FgeyYu23aXsOKQRAzehmS%2Fuploads%2FRpS7G2zX54YnRwoKagUX%2Fnguyen%20ly%20hoat%20dong%20GSM.drawio.png?alt=media&#x26;token=59421829-4780-4512-be33-e896f7585404" alt=""><figcaption></figcaption></figure>

* Get Environment: Ban đầu Mobile Client sẽ Get Config  để lấy môi trường tương ứng. Nếu deviceId của thiết bị thuộc danh sách Tester DeviceIds thì sẽ trả về môi trường là **Development**, ngược lại là môi trường **Production**
* Sau khi xác định được môi trường là gì thì từ đó, mọi dữ liệu sẽ gửi vê Server tương ứng môi trường.
* Cách thêm deviceId vào Tester DeviceIds => [xem hướng dẫn tại đây.](https://developer.cscmobicorp.com/gsm-sdk/test#id-3.-thuc-hien-test)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://developer.cscmobicorp.com/gsm.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
