iPhone does not recognize PhoneGap's navigator.app

后端 未结 1 1813
春和景丽
春和景丽 2020-12-11 03:36

I have a button to exit from the application. The function looks like this:

//Close application
function close_window() {
  navigator.app.exitApp();
}


        
相关标签:
1条回答
  • 2020-12-11 04:22

    navigator.app.exitApp() does not work on IOS, only Android. On iOS, Apple does not allow apps to programmatically exit.

    It can be done through iOS objective c side but there's a good chance this app will be rejected in Apple app store.

    Here you will find a good explanation: https://groups.google.com/forum/?fromgroups=#!topic/phonegap/XjTm0ua4uOY.

    0 讨论(0)
提交回复
热议问题