Update cloud-messaging.md

This commit is contained in:
Elliot Hesp 2017-08-01 12:36:40 +01:00 committed by GitHub
parent ff96214f82
commit 989396131c
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ Badge notification is well known on the iOS platform, but also supported by diff
This library uses the [ShortcutBadger](https://github.com/leolin310148/ShortcutBadger) library to set the badge number
also on Android. A list of supported launcher can be found there.
!> [iOS] Please note: In order for iOS devices to receive Cloud Messages, ensure you [request permissions](http://invertase.io/react-native-firebase/#/modules/cloud-messaging?id=ios-requestpermissions).
## API
### subscribeToTopic(topic: string)