12-08-2010 11:42 AM
Is there an api to find out which are the devices that are registered currently to my push service?
I'm having troubles sometimes in getting the push to deliver to some of the devices...and it doesn't seems to be consistent - i want to verify that this devices are currently registered when i'm trying to send the message to them.
i usually get only the pending status as a reply - and they doesn't seems to be receiving any push notification....
any help will be appreciated.
Thanks.
Solved! Go to Solution.
12-09-2010 06:59 PM
Yes, there is a subscription query http web service API you can use. I don't have the syntax handy but the functionality does exist.
That being said you should keep a copy of subscriptions in your server side app as a content provider.
12-13-2010 04:55 AM
anyone can elaborate on what exactly i need to use?
what query? to which url to send it to?
I tried the DebugPortal but it doesn't seems to aquire the same result - it creates a local my sql db to store the status of subscribers - i want the info from RIM and not the information stored locally.
i want to send this query to RIM...
is it possible?
12-15-2010 06:43 PM
From what I heard from RIM there is a new version of the Push Service SDK coming next week - that Debug Portal in the new version will have the ability to query subscriber status both locally and on the PPG.
That being said, I read somewhere there is a new API to query subscriptions on the PPG over HTTP. I don't have the URL or syntax but if you contact RIM for the info I am sure they'll give it to you.
12-15-2010 08:35 PM
The URL is:
https://pushapi.eval.blackberry.com/mss/PD_cpSubQu
There is an XML payload u need to send to that URL to get the info. Again I don't have the info handy but when I get it I will post it here.
01-16-2011 05:10 AM
https://pushapi.eval.blackberry.com/mss/PD_cpSubQuery
<?xml version="1.0"?> <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"> <bpds version="1.0"> <subscriptionquery-message pushservice-id="32-C9ViiWf2jOTc7yiJCHZZ"> <status status-value="active"/> </subscriptionquery-message> </bpds>