I have an android app where i am sending push notifications using FCM(Firebase Cloud Messaging) to my users, now i have a doubt that when a user updates my app then does FCM updates app's register id or not. And if it updates then if i will send push notification to my user to his both old register_id as well as his new_register id then will he receive the same push notification two times or not.
Also if he will receive push notification two times then how can i send only one notification, because when my app gets updated then there is no possible event through which i can tell my server to remove old _register id and add new register_id in my database.
Please help me here i have read many answers but most of them talks about GCM but as now there is only FCM i do not know how to handle all of this using FCM.