Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Push Development

Reply
New Contributor
micahli123
Posts: 6
Registered: ‎09-27-2012
My Device: non-BlackBerry user

About return code when app is uninstalled

In the case the app is uninstalled or unregistered, the result code when sending push is still 1001 (indicates that the request has been accepted for processing). How can I remove the unused address in our database?

 

Or else we may send useless push request to blackberry and waste the resource of BlackBerry server.

 

Btw, I am using low level API.

Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: About return code when app is uninstalled

You can perform a subscription query every few weeks to see which devices are still subscribed:

http://docs.blackberry.com/en/developers/deliverables/25167/Code_sample_req_subscriptionquery-messag...

 

Another option which could be used would be to implement an ACK or callback from your app when a push is received. If no ACK is received for a few weeks then move the device PIN to an inactive state,

Garett
@garettBeuk
--
Goodbye everybody!
New Contributor
micahli123
Posts: 6
Registered: ‎09-27-2012
My Device: non-BlackBerry user

Re: About return code when app is uninstalled

Thanks.