diff --git a/docs/api/cloud-messaging.md b/docs/api/cloud-messaging.md index 80c6773c..c467a43b 100644 --- a/docs/api/cloud-messaging.md +++ b/docs/api/cloud-messaging.md @@ -36,7 +36,7 @@ firebase.messaging().getInitialNotification() }); ``` -### getToken(): Promise +### getToken(): `Promise` Returns the devices FCM token. This token can be used in the Firebase console to send messages to directly. @@ -47,7 +47,7 @@ firebase.messaging().getToken() }); ``` -### onTokenRefresh(listener: Function) +### onTokenRefresh(listener: `Function`) On the event a devices FCM token is refreshed by Google, the new token is returned in a callback listener. @@ -57,7 +57,7 @@ firebase.messaging().onTokenRefresh((token) => { }); ``` -### onMessage(listener: Function) +### onMessage(listener: `Function`) On a new message, the payload object is passed to the listener callback. This method is only triggered when the app is running. Use `getInitialNotification` for notifications which cause the app to open. @@ -78,7 +78,7 @@ Create a local notification from the device itself. Schedule a local notification to be shown on the device. -### getScheduledLocalNotifications(): Promise +### getScheduledLocalNotifications(): `Promise` Returns an array of all currently scheduled notifications.