admin管理员组文章数量:1026989
I have found similar queries on the internet but I am not able to find the right answer for my scenario.
Say I have a app and a single user have multiple devices of same type (say: iOS). Now I am registering the device on the the backend by generating a token and saving it to the backend (appending it the existing list if any exist). The problem that I am facing is If I uninstall the app and reinstall the app then there are two active token s for a single device. So, I am able to see duplicate notifications. That means the previous token is still active even after uninstalling the app.
I have tried adding the UUID but even that changes for every app install. So I am not able to get the unique identifier for that device. I am expecting the app to behave in this manner. A single user can have multiple device of same type and have app installed on all of it(Have a token). Even if I un-install and reinstall it should replace the previous token with the new token so as to maintain the sanity of the tokens and to avoid the duplicate notification.
I have found similar queries on the internet but I am not able to find the right answer for my scenario.
Say I have a app and a single user have multiple devices of same type (say: iOS). Now I am registering the device on the the backend by generating a token and saving it to the backend (appending it the existing list if any exist). The problem that I am facing is If I uninstall the app and reinstall the app then there are two active token s for a single device. So, I am able to see duplicate notifications. That means the previous token is still active even after uninstalling the app.
I have tried adding the UUID but even that changes for every app install. So I am not able to get the unique identifier for that device. I am expecting the app to behave in this manner. A single user can have multiple device of same type and have app installed on all of it(Have a token). Even if I un-install and reinstall it should replace the previous token with the new token so as to maintain the sanity of the tokens and to avoid the duplicate notification.
本文标签:
版权声明:本文标题:Getting duplicate notifications after app reinstall using "react-native": "0.74.1" & 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745662067a2161951.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论