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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Highlighted
Contributor
Posts: 19
Registered: ‎10-11-2010
My Device: All
Accepted Solution

Anyone tried the new subscriptionquery-message API that was just released?

I'm sending this message to the ppg (the same url as i'm sending push messages to) in the eval system:

 

 

<?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="XXX-XXXXXXXXX">
    <status status-value="active" />
  </subscriptionquery-message>
</bpds>

 

 

 

 

this is the message i'm sending to the ppg (https://pushapi.eval.blackberry.com/mss/PD_pushRequest)

and for some reason i get the following error:

 

 

<?xml version="1.0"?>
<!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP 2.1//EN" "http://www.openmobilealliance.org/tech/DTD/pap_2.1.dtd"><pap><badmessage-response code="2000" desc="Unable to parse mime message due to malformed syntax." bad-message-fragment="Unable to parse mime message due to malformed syntax."/></pap>

 

i have created the message using the sample code from the blackberry site:
 
<?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>

 

anyone seeing the difference from my code to the sample code? did anyone succeeded in doing this kind of query in the eval or production envoirments?

 

Thanks,

Itay Levin

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

Re: Anyone tried the new subscriptionquery-message API that was just released?

it turns out that the URL was not correct - this query should be send to this url:
"https://pushapi.eval.blackberry.com/mss/PD_cpSubQuery"
when using the Eval system.