From cbfd111f1819c80f01b8de9d2da8560ba679fd69 Mon Sep 17 00:00:00 2001 From: Elliot Hesp Date: Tue, 21 Mar 2017 11:25:07 +0000 Subject: [PATCH] Update cloud-messaging.md --- docs/api/cloud-messaging.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.