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
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2
Accepted Solution

How do you make sure that a push message arrives?

Hi,

 

how do you make sure that a push message arrives at the device? I experience sometimes that push messages are not received by the device (even if it is connected and the app is running in the for- or background).

 

Do you push twice and check if a message already arrived?

 

Thanks.



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How do you make sure that a push message arrives?

How are you pushing? Through BIS or BES?

 

Both of these have built in reliability levels so you can receive a notification when the push is received to the device. You could also make a small web request from the device to your push server when the push is received if you would like. 

 

Sending every push twice does not really increase reliability and may add additional waste (device and network resources) without need.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: How do you make sure that a push message arrives?

Hi,

 

we are using the BIS Service for pushing and only the Push Essentials. If I am not mistaken its not possible to check if a push have arrived with the Push Essentials. We tried once the Push Plus, but we never received a acknowledgement (or knew how to request the status of any devices)



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How do you make sure that a push message arrives?

It is not supported to query the PPG to see if the push arrived when using Push Essentials but there is fairly simple option to add reliability to your application yourself; just have the application send a quick message to your server when the push arrives stating the push identifier and device PIN. If this acknowledgement is not received after a certain period of time you could re-send the message, if this trend continues then you can query the PPG to see if the device is still subscribed and remove the device if it is not.

Garett
@garettBeuk
--
Goodbye everybody!
Developer
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: How do you make sure that a push message arrives?

Yes that is definitely possible, but increases the footprint of traffic a little bit Smiley Happy 

How can I query the PPG to see if a device is still subscribed? 



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Highlighted
Retired
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10
My Carrier: Bell

Re: How do you make sure that a push message arrives?

You can submit a subscription query to the PPG:
http://docs.blackberry.com/en/developers/deliverables/25167/Code_sample_req_subscriptionquery-messag...
Garett
@garettBeuk
--
Goodbye everybody!