Page 1 of 2
navigator.app.exitApp() not working from apk file
Posted: Fri Mar 28, 2014 11:14 am
by Asif
Hi,
I have written navigator.app.exitApp(); on the click of logout button in my app.
Its working fine from appery.io tester but not working from the apk on the phone.
Is it a issue with the library version of appery.
I am using library version 2.0
Please help!!
navigator.app.exitApp() not working from apk file
Posted: Fri Mar 28, 2014 12:03 pm
by Maryna Brodina
Hello!
What device you use to test? What is Android version?
navigator.app.exitApp() not working from apk file
Posted: Fri Mar 28, 2014 12:10 pm
by Asif
Samsung galaxy S advance (android version 4.1)
navigator.app.exitApp() not working from apk file
Posted: Fri Mar 28, 2014 1:46 pm
by Maryna Brodina
Add the following lines
pre<feature name="App">
<param name="android-package" value="org.apache.cordova.App"/>
</feature>/pre
in ANDROID--Project name--res--xml--config.xml
navigator.app.exitApp() not working from apk file
Posted: Mon Aug 25, 2014 1:12 pm
by invade dev
Adding feature app it doesnt work specially if you are using this
<category android:name="android.intent.category.HOME" />
<category android:name="android.intent.category.DEFAULT" />
navigator.app.exitApp() not working from apk file
Posted: Tue Aug 26, 2014 10:46 am
by Evgene Karachevtsev
Hello invade dev,
Could you please specify, did you add the lines from Marina's comment in
ANDROID--Project name--res--xml--config.xml ? Also please detail what device and OS version do you use, do you install the application on the device or not, what libraries version do you have?
navigator.app.exitApp() not working from apk file
Posted: Thu Aug 28, 2014 2:21 pm
by invade dev
Maryna is right this plugin org.apache.cordova.App has to be in config.xml
<plugins>
<plugin name="App" value="org.apache.cordova.App"/>
......
</plugins>
I am having issue on how to disable the navigation bar on the tablet, specially notifications located on top of the screen.
Any brilliant ideas would be highly appreciated.
navigator.app.exitApp() not working from apk file
Posted: Fri Aug 29, 2014 7:52 pm
by Kateryna Grynko
navigator.app.exitApp() not working from apk file
Posted: Sun Mar 08, 2015 3:13 am
by Sayan Nandy
Hi,
I have added the following code for exiting the App:
var retVal = confirm("Do you want to Exit the Program ?");
if(retVal) {
localStorage.clear();
if(navigator.app){
navigator.app.exitApp();
}
else if(navigator.device){
navigator.device.exitApp();
}
}
else {
return false;
}
Also in the config.xml
But still in my ASUS phone the exit is not working. I am kind of new to this. Can you please let me know if I am missing something!
navigator.app.exitApp() not working from apk file
Posted: Wed Mar 11, 2015 1:25 pm
by Alena Prykhodko
Hello Sayan,
Sorry for delayed reply.
Please clarify do you test app as native?
What OS version do you use?
Please provide us with a public app link (http://devcenter.appery.io/documentat...) and steps to reproduce.