From 67dfc1375cfbcf7e7ef2e92bbcefdb1b0460d763 Mon Sep 17 00:00:00 2001 From: Libin Lu Date: Thu, 9 Jun 2016 13:56:37 -0400 Subject: [PATCH] add subscribe/unsubscribe readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 8040636..af2ef17 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() { -- 2.26.2