docs: Support send notification from different environment.

This commit is contained in:
Bo-Yi Wu 2017-11-01 10:12:01 +08:00
parent 56ac8e4b61
commit 333575e19b
1 changed files with 22 additions and 0 deletions

View File

@ -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.