diff --git a/docs/api/cloud-messaging.md b/docs/api/cloud-messaging.md index 1967762e..80c6773c 100644 --- a/docs/api/cloud-messaging.md +++ b/docs/api/cloud-messaging.md @@ -24,7 +24,7 @@ Unsubscribes the device from a topic. firebase.messaging().unsubscribeFromTopic('foobar'); ``` -### getInitialNotification(): Promise +### getInitialNotification(): `Promise` 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.