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
Developer
sgallego84
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...

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
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

Please use plain text.
Developer
sgallego84
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.

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
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

Please use plain text.
Developer
sgallego84
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?

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
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.

Please use plain text.
Developer
sgallego84
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!!

Please use plain text.