Open sagun-gautam opened 1 week ago
Exactly, the same problem here! waiting for solution
Same problem here 😢
Anyone got the solution?
@sagun-gautam A workaround for me was create and endpoint in our backend that validates the push token by sending a data-only push notification and verifying the status code !== 404, then it returns back to the app. If is an invalid token, app calls the function FCM.refreshToken(), it generates a new token (this token may be invalid too, but it works in most cases). It occurs always in the app opening, so the token is always verified. Its not a 100% solution, but it helped a lot. Still waiting for a definitive solution.
Describe the bug The token generated by
FCM.getToken()
after deleting and installing the app from store returns shows 'UnRegistered' in FCM Rest API response.To Reproduce Steps to reproduce the behavior:
Expected behavior FCM token should be valid, I can see the FCM token is stored is valid & changed from last token.
Screenshots If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
Additional context Some time the token generated after reinstalling the app is same in iOS