02-20-2013 12:29 PM - edited 02-21-2013 07:22 AM
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/delive
AFAIK there is active, suspended, cancelled and unkown...
02-20-2013 02:10 PM
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:
02-21-2013 07:27 AM
but what state is get when the user uninstall the app? And what else when the user destroys the channer or the session?
02-21-2013 08:09 AM
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".
02-22-2013 02:41 AM
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?
02-22-2013 09:04 AM
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.