简体   繁体   中英

How to reuse the old notification token as new token in firebase push notification?

When an android app is reinstalled then the notification token that is generated by firebase is changed. So if any user subscribed to any groups then after reinstalling the app he/she does not get any push notification. Is there any way to reuse the same notification token after reinstallation of the app. Or is there any way to override the old notification token stored in various nodes when the user reinstall the app?

No, the token is not reusable. You should instead be storing user preferences in a centralized location so that the app can re-subscribe to any topics.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM