ionic - navigator.app.exitApp() not working
up vote
0
down vote
favorite
Is there any way to kill app on iOS for ionic? I've tried ionic.Platform.exitApp() as well as navigator.app.exitApp()...both didn't work. I also tried this plugin: https://github.com/joycorp/cordova-plugin-exitapp but didn't work as well.
Is it possible to do this? The app is for enterprise use only and won't be distributed through App Store so no worries about being rejected.
ios ionic-framework
add a comment |
up vote
0
down vote
favorite
Is there any way to kill app on iOS for ionic? I've tried ionic.Platform.exitApp() as well as navigator.app.exitApp()...both didn't work. I also tried this plugin: https://github.com/joycorp/cordova-plugin-exitapp but didn't work as well.
Is it possible to do this? The app is for enterprise use only and won't be distributed through App Store so no worries about being rejected.
ios ionic-framework
Can you use ionic-angularPlatform
modules exitApp() function.
– Omsl
Oct 23 at 11:03
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Is there any way to kill app on iOS for ionic? I've tried ionic.Platform.exitApp() as well as navigator.app.exitApp()...both didn't work. I also tried this plugin: https://github.com/joycorp/cordova-plugin-exitapp but didn't work as well.
Is it possible to do this? The app is for enterprise use only and won't be distributed through App Store so no worries about being rejected.
ios ionic-framework
Is there any way to kill app on iOS for ionic? I've tried ionic.Platform.exitApp() as well as navigator.app.exitApp()...both didn't work. I also tried this plugin: https://github.com/joycorp/cordova-plugin-exitapp but didn't work as well.
Is it possible to do this? The app is for enterprise use only and won't be distributed through App Store so no worries about being rejected.
ios ionic-framework
ios ionic-framework
asked Oct 23 at 8:47
da32
1861112
1861112
Can you use ionic-angularPlatform
modules exitApp() function.
– Omsl
Oct 23 at 11:03
add a comment |
Can you use ionic-angularPlatform
modules exitApp() function.
– Omsl
Oct 23 at 11:03
Can you use ionic-angular
Platform
modules exitApp() function.– Omsl
Oct 23 at 11:03
Can you use ionic-angular
Platform
modules exitApp() function.– Omsl
Oct 23 at 11:03
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
This could possibly work
if (navigator.device) {
navigator.device.exitApp();
}
I have not tested it before
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
This could possibly work
if (navigator.device) {
navigator.device.exitApp();
}
I have not tested it before
add a comment |
up vote
0
down vote
This could possibly work
if (navigator.device) {
navigator.device.exitApp();
}
I have not tested it before
add a comment |
up vote
0
down vote
up vote
0
down vote
This could possibly work
if (navigator.device) {
navigator.device.exitApp();
}
I have not tested it before
This could possibly work
if (navigator.device) {
navigator.device.exitApp();
}
I have not tested it before
answered 2 days ago
Jack
142111
142111
add a comment |
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f52944837%2fionic-navigator-app-exitapp-not-working%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Can you use ionic-angular
Platform
modules exitApp() function.– Omsl
Oct 23 at 11:03