mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-28 20:25:41 +08:00
Update cloud-messaging.md
This commit is contained in:
@@ -24,7 +24,7 @@ Unsubscribes the device from a topic.
|
||||
firebase.messaging().unsubscribeFromTopic('foobar');
|
||||
```
|
||||
|
||||
### getInitialNotification(): Promise<Object>
|
||||
### getInitialNotification(): `Promise<Object>`
|
||||
|
||||
When the application has been opened from a notification `getInitialNotification` is called and the notification payload
|
||||
is returned. Use `onMessage` for notifications when the app is running.
|
||||
|
||||
Reference in New Issue
Block a user