diff --git a/README.md b/README.md index 8040636bc092c9f5dc6a205aba673f756a0f0e03..af2ef17e048b0fe5f5ce3fa4b511cb6bfac0b7a4 100644 --- a/README.md +++ b/README.md @@ -122,6 +122,9 @@ In [firebase console](https://console.firebase.google.com/), you can get `google console.log(token) // fcm token may not be available on first load, catch it here }); + + FCM.subscribeToTopic('/topics/foo-bar'); + FCM.unsubscribeFromTopic('/topics/foo-bar'); } componentWillUnmount() {