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
Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

Subscription query request message: possible status values

[ Edited ]

Hi all,

which are the possible values for the subscription query status? What is the meaning of each status? 

In the documentation ( http://docs.blackberry.com/tr-tr/developers/deliverables/25167/Using_subscriptionquery_1460397_11.js... ) they are not well explained.

 

AFAIK there is active, suspended, cancelled and unkown...

Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Subscription query request message: possible status values

Hi,

 

The values are actually active (the user is actively subscribed), suspended (the user's subscription has been suspended), unsubscribed (not "cancelled" - the user's subscription has become inactive), and unknown (the user's subscription could not be found).

 

I will contact our docs team to get that "cancelled" updated to "unsubscribed".

 

If you use the Push Service SDK, here is the corresponding class with the statuses:

http://www.blackberry.com/developers/docs/PushServiceSDK1.2/LowLevelAPI/net/rim/pushsdk/query/subscr...

 

Thanks,

 

Matt

Highlighted
Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

Re: Subscription query request message: possible status values

Thanks mdandrea,

but what state is get when the user uninstall the app? And what else when the user destroys the channer or the session?

 

Best regads.

Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Subscription query request message: possible status values

In BlackBerry 10, when the user uninstalls the app it automatically does a destroy channel under the covers.  Whenever a destroy channel is done, it unsubscribes the user from the BIS PPG and so the state of that user would be "unsubscribed".

 

Matt

Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

Re: Subscription query request message: possible status values

One last question... when a user gets 'suspended' state?
I think the state is unknown if the user doesn't have installed the app ever. Is this it?

Retired
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: Subscription query request message: possible status values

A content provider (who sends out the pushes through its Push Initiator) is able to suspend a user's subscription in the PPG if they see fit.  It's not too typical though.

 

Yes, the "unknown" state is if the PPG has no knowledge of the device.

Developer
Posts: 89
Registered: ‎10-18-2012
My Device: BB Z10
My Carrier: -

Re: Subscription query request message: possible status values

Thanks a lot!! It was very helpful!!