I see a lots of questions about receiving new registration id for the app when uninstall the older version and reinstalled the new version, which is an expected one.
But I came to notice that an app upgrade generates a new registration id and the old registration id is not made Invalid
/NotRegistered
. Sorry if I am outdated in this topic.
This causes an issue of receiving multiple notifications for the same device while notification is send from server.
So do I need to call the FirebaseInstanceId.getInstance().deleteInstanceId();
while app upgrade or does the old registration id will be invalidated in future by FCM?