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
Trusted Contributor
sergiosandoval
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T
Accepted Solution

Exit script

[ Edited ]

Hello there. Im making a BB10 app in WebWorks and in the past ive been able to use the

 

<feature id="blackberry.app.event" />
blackberry.app.event.onExit()
 
<div data-bb-type="action" data-bb-style="button" data-bb-img="images/.png" onclick="blackberry.app.exit();"></div>

 

 

comands to exit the app. But they're not working any more? or am I doing it wrong?

 

This is my config:

 

<access uri="https://twitter.com" subdomains="true">
<feature id="blackberry.app" required="true" version="1.0.0"/>
<feature id="blackberry.ui.menu" />
<feature id="blackberry.invoke" />
<feature id="blackberry.invoke.BrowserArguments" />
<feature id="blackberry.app.event" required="true" version="1.0.0"/>
</access>

 

 

When I hit exit button I created, in Ripple it gives me a message saying:

 

"blackberry.app.exit() was called, in the real world your app will exit, here... you get this notification"

 


But in real life its not exiting.

 

 

Thank you in advance. 

 

 

 

 

 

Please use plain text.
Trusted Contributor
sergiosandoval
Posts: 132
Registered: ‎02-17-2012
My Device: Bold 9900
My Carrier: AT&T

Re: Exit script

I have solved this.
Please use plain text.