Commit 67dfc137 authored by Libin Lu's avatar Libin Lu

add subscribe/unsubscribe readme

parent 48d63d93
...@@ -122,6 +122,9 @@ In [firebase console](https://console.firebase.google.com/), you can get `google ...@@ -122,6 +122,9 @@ In [firebase console](https://console.firebase.google.com/), you can get `google
console.log(token) console.log(token)
// fcm token may not be available on first load, catch it here // fcm token may not be available on first load, catch it here
}); });
FCM.subscribeToTopic('/topics/foo-bar');
FCM.unsubscribeFromTopic('/topics/foo-bar');
} }
componentWillUnmount() { componentWillUnmount() {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment