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
dash74
Posts: 8
Registered: ‎02-01-2012
My Device: Torch 9800

Exit / Quit Webworks App

Hi all,

 

I want to close a webworks app, Sencha Touch supported but a white screen appear after calling

 

blackberry.app.exit();  

window.close();

 

in any order.

The sequence it works only after open the application.

After doing some actions the white screen is the only result.

 

All suggestions are appreciated. Thanks

 

David

Regular Contributor
liammccann
Posts: 68
Registered: ‎06-12-2012
My Device: Blackberry Bold 9780

Re: Exit / Quit Webworks App

When i exit my application i just used blackberry.app.exit() on its own and it works fine... there no need for window.close()
Developer
greenback
Posts: 535
Registered: ‎10-17-2010
My Device: (BlackBerry Z10)-> Q10/Passport Dual Use

Re: Exit / Quit Webworks App

Make sure you set permissions in your config.xml file like so

<feature id="blackberry.app" />


Additional Things To Check

  • Check that you property attached onClick event handler to the button/link you are pressing
  • Verify that jQuery or javascript dependencies are working by doing a simple alert('works'); check

 Also you do not need to call window.close();

Hope that solves your issue!
:Clap: 

 

New Contributor
dash74
Posts: 8
Registered: ‎02-01-2012
My Device: Torch 9800

Re: Exit / Quit Webworks App

Hi greenback,

I already have

<feature id="blackberry.app" />

 in my config.xml and the button "Exit" already activates my event.

So Blackberry.app.Exit() works but just after opening the application.

If I move into the app and come back to the main view, pressing the exit button returns a white screen.

I need to open the device main menu and select close.

I am currently using Sencha Touch 2.3.1.

 

Thanks

 

David

 

Retired
astanley
Posts: 1,382
Registered: ‎07-02-2009
My Device: BlackBerry Bold 9900
My Carrier: Bell

Re: Exit / Quit Webworks App

Just to confirm, are you using all lower-case characters?

 

blackberry.app.exit()

 

not

 

Blackberry.app.Exit()

 

 

If you are trying to run this on BlackBerry 7 Smartphone, I would suggest connecting to your app using Web Inspector to verify what runtime error is happening:

https://developer.blackberry.com/html5/documentation/ww_testing/enabling_webinsp_microsite_1987478_1...

Follow me on Twitter: @n_adam_stanley
-------------------------------------------------------------------------------------------------------------------------
Your app doesn't work? Use BlackBerry remote web inspector to find out why.
New Contributor
dash74
Posts: 8
Registered: ‎02-01-2012
My Device: Torch 9800

Re: Exit / Quit Webworks App

Hi astanley,

 

yes I'm using all lower-case as blackberry.app.exit().

And I'm developing on a 9800 Torch with 6 OS (Sencha Touch 2.3.1).

It's a hell!! :-) (low memory, memory leak...).

 

Thanks

 

David

Developer
madiha
Posts: 107
Registered: ‎05-26-2011
My Device: Torch

Re: Exit / Quit Webworks App

David,

Did u manage to resolve this issue ?

I am also facing this when i moved to blackberry webworks sdk  2.3.1.5

I didnot have this issue when i was using sdk version 2.0.0
..