docs: Support send notification from different environment.
This commit is contained in:
parent
56ac8e4b61
commit
333575e19b
22
README.md
22
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
|
### Android Example
|
||||||
|
|
||||||
Send normal notification.
|
Send normal notification.
|
||||||
|
|
Loading…
Reference in New Issue