From ec7a4f36a1c2990fa2ee3bedc6ac2a53567ed19a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=BC=D0=B8=D1=82=D1=80=D0=B8=D0=B9=20=D0=A2=D0=BA?= =?UTF-8?q?=D0=B0=D1=87=D1=83=D0=BA?= Date: Tue, 6 Mar 2018 16:11:58 +0300 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 0cfd262..213d962 100644 --- a/README.md +++ b/README.md @@ -455,6 +455,22 @@ class App extends Component { .catch(error => { //Error while deleting instance id }); + + // Use this functions instead of FCM.getFCMToken if you want revokes access of token + FCM.getEntityFCMToken() + .then(token => { + // Returns a token that authorizes an FCM Entity by Instance ID + // Store fcm token in your server + }) + FCM.deleteEntityFCMToken() + .then( () => { + // Deleted token successfully + // Revokes access to a scope (action) for an entity previously authorized by getToken() with Instance ID + // This will reset token + }) + .catch(error => { + // Error while deleting token + }); } } ``` -- 2.26.2