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

close app after receiving push in background

Hi,

 

is it somehow possible to check if a push was received whether the application was closed or open? When my application is closed, it receive the push message, but keeps open as a active frame. Would be nice to somehow close if after receiving the application when it was not open.

 

best

 

bert2002



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Please use plain text.
BlackBerry Development Advisor (Retired)
marco_dicesare
Posts: 76
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: close app after receiving push in background

There are sample push enabled applications you can download from BlackBerry.com for Cascades, WebWorks and AIR that demonstrates this exact functionality. 

Please use plain text.
BlackBerry Development Advisor (Retired)
mdandrea
Posts: 311
Registered: ‎08-08-2012
My Device: BlackBerry Z10
My Carrier: Rogers

Re: close app after receiving push in background

It is dicussed in the developer guides for the sample apps as well that are linked to here:

https://developer.blackberry.com/devzone/develop/platform_services/push_apps.html

 

Please use plain text.
Developer
bert2002
Posts: 172
Registered: ‎05-01-2010
My Device: Z10
My Carrier: O2

Re: close app after receiving push in background

OMG thats so true. I didnt saw it. I am really suprised that Blackberry is covering really every aspect. Very well work and keep it going. So much changed from BB6. Looks pretty sweet and is very helpful for developer!

 

Here is the direct link if some one finds this thread: https://developer.blackberry.com/html5/documentation/exiting_after_processing_push_message.html

 

 

best

 

bert2002



----------------------------------------------------------
find my widgets -> http://blackberry.itbert.de
Please use plain text.