Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

How to delete push notifications when app is deleted

Am I correct to assume that the user can delete a push notifications enabled app on their phone and they would still receive notifications? How can I disable that? I want the push notifications to stop as soon as the user deletes the app
Thanks

Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

How to delete push notifications when app is deleted

Any thoughts on this?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to delete push notifications when app is deleted

Hi Deki,

Push is OS implementation feature.

Please try to reboot your phone.

Regards.

Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

How to delete push notifications when app is deleted

No, you misunderstood me. I am looking for a way to disable the "push notification" functionality itself, not just delete the existing notifications. Whenever a device installs the app, the device is registered in the Device collection in the database. So, if a user decides to uninstall and remove the app from their phone, how can I also remove the device from receiving push notifications in the future (after the app is uninstalled)?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to delete push notifications when app is deleted

Hi Deki,

Please use "unregister device" DB api.

You can find more info about how to use it here:
http://devcenter.appery.io/documentat...

Regards.

Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

How to delete push notifications when app is deleted

Ok, I can use that, however how do I execute this based on an app by app basis? For example, if the user chooses to uninstall the app- how do I execute this code to unregister the device? I mean, based on what event?

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to delete push notifications when app is deleted

Hi Deki,

Unfortunatly there is not such event.. Because of app could be closed when being uninstalled.

Regards.

Deki
Posts: 0
Joined: Tue Apr 15, 2014 4:53 pm

How to delete push notifications when app is deleted

So the user could potentially remove the app and still receive notifications. How do I prevent that. This is very important to my app...

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

How to delete push notifications when app is deleted

Hi Deki,

As i told before, push notification managing - is OS part logic.

Please specify how did you test it and on what device.

I'm just tested it on my android 4.1.2 and after i removed the app, push notification did not come to this device any more.

Regards.

Anim
Posts: 0
Joined: Fri Jul 03, 2015 10:45 am

How to delete push notifications when app is deleted

Hi Yurii,

Just wanted to check, that when we uninstall our APP, the deviceid will be still available in Device Collection??

Regards
Animesh

Return to “Issues”