From 333575e19bf135a849c7753285f28bbb82c8af36 Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 1 Nov 2017 10:12:01 +0800 Subject: [PATCH] docs: Support send notification from different environment. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index e248470..4acd662 100644 --- a/README.md +++ b/README.md @@ -572,6 +572,28 @@ Add other fields which user defined via `data` field. } ``` +Support send notification from different environment. See the detail of [issue](https://github.com/appleboy/gorush/issues/246). + +```diff +{ + "notifications": [ + { + "tokens": ["token_a", "token_b"], + "platform": 1, ++ "production": true, + "message": "Hello World iOS Production!" + }, + { + "tokens": ["token_a", "token_b"], + "platform": 1, ++ "development": true, + "message": "Hello World iOS Sandbox!" + }, + ..... + ] +} +``` + ### Android Example Send normal notification.