Push Notifications Android or IOS

Hi, 

Today I managed to send push notifications to my corona app using my own server and Google GCM but now I have a problem. 

In my app, the user needs to be logged in with his user name and password to receive certain type of notifications, so I register the device ID to my server when the user logs in.

After testing for some time I uninstalled the app and I realized that if the I install the app again, the device will still receive the push notifications even if the user has not logged in. 

Is there any standard procedure I should follow to stop this from happening?

Thank you in advanced.

Yes, I also noticed that. I don’t think there is a solution since to solve that you would have to logout the user from your server when he/she uninstall your app, what (as far I as know) there is no way to do it.

Yes, I also noticed that. I don’t think there is a solution since to solve that you would have to logout the user from your server when he/she uninstall your app, what (as far I as know) there is no way to do it.