From 69b9a237f69ae3b37fb518b5d46a39b52805b9a8 Mon Sep 17 00:00:00 2001 From: Aleksandr Soloshenko Date: Thu, 5 Dec 2024 09:21:54 +0700 Subject: [PATCH] [get-started] add note regarding custom built private servers --- docs/getting-started/custom-gateway.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/getting-started/custom-gateway.md b/docs/getting-started/custom-gateway.md index 55351c5..cb0b3e0 100644 --- a/docs/getting-started/custom-gateway.md +++ b/docs/getting-started/custom-gateway.md @@ -28,6 +28,8 @@ If you do not plan to use the private server mode, there is no need to rebuild t ### Private Server Mode +> **Note:** To run servers in Private mode, you must have at least one server running in Public mode. This is because only Public servers can communicate directly with Firebase Cloud Messaging (FCM), while Private servers communicate with FCM through the Public server. The Public server must use the same Firebase account and configuration as your Android app. + To use the private server mode, you must rebuild the backend after modifying the file at `internal/sms-gateway/modules/push/upstream/client.go` to set your main server address. You can then build the binary by executing `make build` or the Docker image by running `make docker-build`. ## Android App