Firebase Cloud Messaging Refresh Token

2019-08-04 18:34发布

I am using this Cordova plugin for Firebase in FCM for my PhoneGap project, but I got no idea how I can implement the login, sign up, and log out so that I can send a push notification to a specific username when the user logs-in.

My idea is when the user logs-in, it will generate a new token and store the new token with the username in MySQL database and on user logout, it will update new token. But in the documentation, there is no way to refresh the token by using JavaScript. Thanks.

0条回答
登录 后发表回答