03-28-2012 03:35 AM - edited 03-28-2012 03:45 AM
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?
03-28-2012 11:08 AM
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...
03-28-2012 02:16 PM
This is a question about a webworks application, not a native java application. Is the notification manager available to a webworks application as well?
03-28-2012 02:31 PM
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-A