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

New Contributor
Posts: 7
Registered: ‎05-18-2012
My Device: Not Specified

BrowserArguments - avoid Browser back button to return to app


I am using blackberry.invoke.BrowserArguments() to open a url as soon as i launch the application. The problem is when i click back button of the browser it returns to the application which has nothing to show. How can i avoid this? I dont want the control to return to the blank page of the app. Also I need the application to be in background so that it can listen to push notifications. Please can anyone help me solve this issue.

I need this urgently.


Thank you.

Posts: 856
Registered: ‎07-15-2008
My Device: Passport
My Carrier: Bell

Re: BrowserArguments - avoid Browser back button to return to app

You should be using the background property to define a the portion of your app that goes in the background and listens to push requests: https://developer.blackberry.com/html5/documentation/ww_developing/rim_background_element_1265316_11...


Your foreground app can invoke the browser and then exit, allowing the background to run separately (or even on startup): https://developer.blackberry.com/html5/apis/blackberry.app.html#.exit



Tim Windsor
Open Source Technical Lead