Page 1 of 2

How to delete push notifications when app is deleted

Posted: Thu Oct 23, 2014 2:40 pm
by Deki

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


How to delete push notifications when app is deleted

Posted: Thu Oct 23, 2014 10:51 pm
by Deki

Any thoughts on this?


How to delete push notifications when app is deleted

Posted: Fri Oct 24, 2014 12:47 am
by Yurii Orishchuk

Hi Deki,

Push is OS implementation feature.

Please try to reboot your phone.

Regards.


How to delete push notifications when app is deleted

Posted: Mon Oct 27, 2014 8:37 pm
by Deki

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)?


How to delete push notifications when app is deleted

Posted: Tue Oct 28, 2014 2:57 am
by Yurii Orishchuk

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.


How to delete push notifications when app is deleted

Posted: Tue Oct 28, 2014 1:40 pm
by Deki

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?


How to delete push notifications when app is deleted

Posted: Wed Oct 29, 2014 4:18 am
by Yurii Orishchuk

Hi Deki,

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

Regards.


How to delete push notifications when app is deleted

Posted: Wed Oct 29, 2014 12:39 pm
by Deki

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


How to delete push notifications when app is deleted

Posted: Thu Oct 30, 2014 3:10 am
by Yurii Orishchuk

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.


How to delete push notifications when app is deleted

Posted: Wed Jul 29, 2015 12:25 pm
by Anim

Hi Yurii,

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

Regards
Animesh