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

Web and WebWorks 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
New Developer
Posts: 96
Registered: ‎07-26-2008
My Device: Not Specified

Can I launch a Webworks app that is in exited state by means of a push notification?

[ Edited ]

My webworks app can handle push notifications fine when in background or foreground.  However, push notifications seems to be queued up when the app has exited. It makes sense since there is no executing code.

 

When I relaunch the app, and the listener starts again all the messages do get delivered.

 

Is it possible to have the app process a notification receieved when the app has exited by means of a registration with the system?

 

If the wakeup page is the mechanism to do this, it seems not to be working in my single page app.  Can someone post sample code using the openBISListener and their  config file with all the properties that are needed for wakeup to work.  How should we specify the relative path for the html page?

 

Contributor
Posts: 44
Registered: ‎12-01-2009
My Device: Not Specified

Re: Can I launch a Webworks app that is in exited state by means of a push notification?

Yes this can be done by leveraging the notification manager... The first time your app runs, have an extension that registers your app with this service on the device and you will be able to have incoming messages recieved and acted upon even when you application isn't running... 

 

Check it out: http://www.blackberry.com/developers/docs/4.0.2api/net/rim/device/api/notification/NotificationsMana...

Highlighted
New Developer
Posts: 96
Registered: ‎07-26-2008
My Device: Not Specified

Re: Can I launch a Webworks app that is in exited state by means of a push notification?

Hi

 

This is a question about  a webworks application, not a native java application.  Is the notification manager available to a webworks application as well?

 

Thanks

Contributor
Posts: 44
Registered: ‎12-01-2009
My Device: Not Specified

Re: Can I launch a Webworks app that is in exited state by means of a push notification?

Out of the box, no this isn't in the API's... 

 

But here is a community API which may work for you: https://github.com/blackberry/WebWorks-Community-APIs/tree/master/Smartphone/notification

 

R