I want to make a button that closes the app
sosensible,
The Browser object has a close action if that helps!
thanks i'll try it
does anyone know if that will work for tizen?
sosensible
—
Blacksmith
What about if it is exported to a .APK via cocoon?
I've just had a look and no luck?
I suppose you could 'back' out through the android key.. but what about iOS? It'd look fairly trashy, surely; having to 'home' out of it then close it through the multi-tasking menu?
Sulli I've never seen a single app on iOS where you could close it through the app.
EncryptedCow
Hoyer
Just moved over from android! It seems weird! In fact I could've sworn some apps do.. but after looking through those that I have.. they don't!
If it is normal then that is fine, thanks for the replies and put a worry to rest :-)
Sulli
Well all depending on the code some apps tends to make the app "crash". Whether or not this could be provoked I can't tell you
Sulli,
As EncryptedCow & Hoyer pointed out, this is not normally the way iOS apps handle closing.
If you find other situations where the "Browser -> close" option doesn't work for you. The "Browser" object also has an "Execute JavaScript" action. So you could use the "window.close();" command instead.
Hope that helps :)
Blacksmith thanks that does! Didn't realise "browser" was valid for things exported through cocoon cloud service! Thanks!
Sulli, no problem!
Yeah, Cocoon used to have issues with the Browser object, but they've supported it successfully for a while now!
Without hijacking this thread too much :-D...
What kind of JavaScript things could you punch into that command option?
(I know little JavaScript.. but interested in what you could get out of it.)
Develop games in your browser. Powerful, performant & highly capable.
Sorry, I haven't used the action that much myself, so not really sure of its full capabilities.
Perhaps someone else may be able to enlighten us both ;)