Update cloud-messaging.md

This commit is contained in:
Elliot Hesp 2017-03-21 11:25:07 +00:00 committed by GitHub
parent 865774e367
commit cbfd111f18
1 changed files with 1 additions and 1 deletions

View File

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