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.
03-01-2013 06:39 AM
We using the Java Push-Server (from blackberry) and havaing our own Push enabled App. We have just one topic for which one can subscribe. Everthing works fine after you subscribe to that topic.
But now we're facing the following issue:
After we unsubscribe and than again subscribe to the topic, no push will be delivered to the device. We don't close the channel at the device because we're planning to have more topics to subscribe and than this make no sense.
So after some investigation I realized that we need to re-create the channel (createChannel) of the push object and then pushes will be delivered furthermore.
Is this a normal behaviour? Is there any connection between the java push server and the ppg, which tells the ppg that the subscriber with a certain token has unsubscribed his last topic and then the ppg deactivates the push channel?
03-01-2013 08:44 AM
03-01-2013 08:52 AM
When you say "Java Push-Server" are you referring to the Push Service SDK?
How are you unsubscribing to a topic? Is this is purely a message from your push-enabled application the device to your server-side application or are you using the unsubscribe call to the Push Service SDK?
To answer your question, yes, if you are using the Push Service SDK high-level APIs the unsubscribe call on the SubscriptionServiceImpl class will make a call to the PPG to ask it to destroy the channel to ensure there is consistency between the server-side subscription status and the PPG subscription status - it is a best practice to keep these two in-sync as much as possible.