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

Reply
New Contributor
Posts: 5
Registered: ‎08-22-2012
My Device: Torch 9810
My Carrier: O2

Launch browser fullscreen (hiding URL bar)

Hi,

 

I am invoking a browser window from my WebWorks site as follows:

 

var args = new blackberry.invoke.BrowserArguments(MY_URL);
blackberry.invoke.invoke(blackberry.invoke.APP_BROWSER, args);

 

This all works fine, except that the browser window is not full screen and I see the URL bar. I really want to hide this if at all possible, is there any way to do this?

 

Cheers,

 

Jamie

Developer
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha
My Carrier: VIVO Brazil

Re: Launch browser fullscreen (hiding URL bar)

Since you're launching the system Browser app it will just behave as a normal browser. If you don't want any of the Browser UI you'll need to use an <iframe> inside your app.
If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
New Contributor
Posts: 5
Registered: ‎08-22-2012
My Device: Torch 9810
My Carrier: O2

Re: Launch browser fullscreen (hiding URL bar)

I've been down the iframe route and there are two issues with it for me.

 

1) My app used focus based navigation, but the mobile website requires the cursor to navigate properly. I don't know anyway to change this dynamically.

 

2) Including an iframe in my HTML has for some reason has prevented my ability to catch the back button events. As soon as I remove the iframe it works fine.

 

Cheers,

 

Jamie

Developer
Posts: 134
Registered: ‎05-19-2012
My Device: Torch 9800, PlayBook 64GB, Dev Alpha
My Carrier: VIVO Brazil

Re: Launch browser fullscreen (hiding URL bar)

[ Edited ]

1) Sadly I think you can't do that because of security problems...

2) The reason for that is because now the app will respond only to event fired inside the iframe, so your app will never get the back button event, since it was fired to the iframe.

 

Why not use the normal Browser? I think it's a lot better for the user (to be in the stock browser) if you need to redirect him to a site.

If I helped you please click the "Like" button to support my work.
My apps: CherryNotes - Bookmarked - Requests
Social Me: about.me - Twitter
New Contributor
Posts: 5
Registered: ‎08-22-2012
My Device: Torch 9810
My Carrier: O2

Re: Launch browser fullscreen (hiding URL bar)

I would love to just use the normal browser, but unfortunately the client wants a seamless app experience where the user does not see that they are being moved into the browser.

 

Sigh........

 

Thanks for your help though!