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
Contributor
Posts: 19
Registered: ‎10-11-2010
My Device: All
Accepted Solution

What are the devices that are registered for my app push service?

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.

 

 

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: What are the devices that are registered for my app push service?

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.

Contributor
Posts: 19
Registered: ‎10-11-2010
My Device: All

Re: What are the devices that are registered for my app push service?

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?

 

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: What are the devices that are registered for my app push service?

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.

Developer
Posts: 235
Registered: ‎11-08-2010
My Device: Not Specified

Re: What are the devices that are registered for my app push service?

The URL is:

https://pushapi.eval.blackberry.com/mss/PD_cpSubQuery

 

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.

 

Contributor
Posts: 19
Registered: ‎10-11-2010
My Device: All

Re: What are the devices that are registered for my app push service?

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>