Firebase Cloud Messaging Refresh Token

核能气质少年 提交于 2020-01-05 05:28:06

问题


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.

来源:https://stackoverflow.com/questions/39943621/firebase-cloud-messaging-refresh-token

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!