09-28-2012 12:06 AM - edited 09-28-2012 06:51 AM
I'm developing Blackberry Webworks application that supports BIS push. Everything works fine when app is opening. But if push comes while app closed, app will be launched in background not in foreground.
My questions are:
1. Does Blacberry webworks push just support to launch app in background if push comes while app closed?
2. If app is in background and push comes, will app launched in foreground?
3. Does Blacberry webworks push support to display something likes badges on app icon or red sign (like email app) on app icon or playing sound when push comes?
"If an application registered to BIS push is closed and a push message arrives, the application will be launched in background and the wake up page is displayed. rim:allowInvokeParams="true" attribute must be specified in the content element of config.xml."
Thanks you very much?
09-28-2012 08:47 AM
Yes, the app will only be launched in the background when the new push comes in. This is intentional, so if the user is doing something else in the foreground, then this push won't distract them from what they're doing.
If you want your app to move from the background to the foreground for any reason, then check out the blackberry.app.requestForeground API from WebWorks.