Am 31.07.2011 05:15, schrieb Nicole B. Torcolini gmail:
> Is there a way to close a Phonegap application? I tried window.close(),
> but nothing happens.
>
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
Application closing is only allowed through the "Home" button of the iOS
device and should never be called by your app explicitly.
Apple relies on "guidelines" and (usually!) they follow their HIG (Human Interface Guidelines), and quote:
------------
"Never quit an iOS application programmatically because people tend to interpret this as a crash. However,
if external circumstances prevent your application from functioning as intended, you need to tell your users
about the situation and explain what they can do about it. Depending on how severe the application
malfunction is, you have two choices.
Display an attractive screen that describes the problem and suggests a correction. A screen provides
feedback that reassures users that there’s nothing wrong with your application. It puts users in control, letting
them decide whether they want to take corrective action and continue using your application or press the
Home button and open a different application.
If only some of your application's features are not working, display either a screen or an alert when
people activate the feature. Display the alert only when people try to access the feature that isn’t functioning."
------------
Apple HIG:
http://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/MobileHIG/MobileHIG.pdf
(section "Don’t Quit Programmatically", page 65)
Probability is not in your favour however unless you follow the above. I would say "never" is pretty absolute, but then...
Hi,
I use the following code fragment, it can work on both Android phone and iPhone, but it don't work on iPad.
Does anybody know an alternative for iPad?
if (navigator.app && navigator.app.exitApp) {
navigator.app.exitApp();
} else if (navigator.device && navigator.device.exitApp) {
navigator.device.exitApp();
}
--
-- You received this message because you are subscribed to the Google
Groups "phonegap" group.
To post to this group, send email to phon...@googlegroups.com
To unsubscribe from this group, send email to
For more options, visit this group at
http://groups.google.com/group/phonegap?hl=en?hl=en
For more info on PhoneGap or to download the code go to www.phonegap.com
On Friday, January 25, 2013 at 12:43 PM, Roberto Dote wrote:
I can do it for iOS (iPad2). with the help of a plugin for PhoneGap.published as modified capture.I hope it helps.greetings from chile
El sábado, 30 de julio de 2011 23:15:43 UTC-4, Nicole B. Torcolini gmail escribió:Is there a way to close a Phonegap application? I tried window.close(), but nothing happens.
--