06-26-2012 12:58 AM
I am using the push API in my app. Sometimes despite returning a status of "Active" the push messages don't arrive. I happened to notice in the device event logs that sometimes I am seeing posts to http://pushapi..../pd_subdereg... (the equivalent of PushApplicationRegistry.unregisterApplication) immediately after the status has returned "Active" even though I do not call that push api method in my app.
Is there some reason the push api would be calling unregister by itself?
A google search led me to this link, https://developer.blackberry.com/html5/apis/blackb
Could this be true? If so, under what circumstances?
06-29-2012 12:36 AM
If you are basing your device application on the sample app the only time it will deregister automatically is if it detects a SIM change. I would log a stack trace in the unregister command in PushController so you can see hwo it is being called.
hth
Chris
--------------------------------------------------
if I helped you press LIKE button
06-29-2012 11:27 AM
A quick test you could do to verify if unregister is actually being called or whether it is showing in the logs for some other reason would be to perform a subscription query:
http://docs.blackberry.com/en/developers/deliverab
This will let you see if the PIN you are pushing to is currently subscribed.