- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi there,
I'm trying to figure out how to exit from the application on iOS ...
I have the follow code that's works fine on Android devices, but on iOS not!
<html> <head> <title>PhoneGap</title> <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript""> function onLoad() { document.addEventListener("deviceready", onDeviceReady, true); } function exitFromApp() { navigator.app.exitApp(); } </script> </head> <body onload="onLoad();"> <button name="buttonClick" onclick="exitFromApp()">Click Me!</button> </body> </html>
- Tags:
- HTML5
- Intel® XDK
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no API provided fopr gracefully terminating an iOS application.
In iOS, the user is expected to press the Home button to close applications.
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is no API provided fopr gracefully terminating an iOS application.
In iOS, the user is expected to press the Home button to close applications.
![](/skins/images/D2683F18326913BBA0436CB7114DD569/responsive_peak/images/icon_anonymous_message.png)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page