Page 1 of 1

exit apps

Posted: Wed Nov 13, 2013 9:00 am
by gubi

hi, i am writing this code onclick event to exit apps. but not working this methods
navigator.app.exitApp();
and
device.exitApp();


exit apps

Posted: Wed Nov 13, 2013 11:35 am
by Kateryna Grynko

Hi,

Please take a look at here: https://getsatisfaction.com/apperyio/...


exit apps

Posted: Thu Nov 14, 2013 6:53 am
by gubi

Hi, still not working, i m using this code.
$('#startScreen_mobilefooter1 [name="mobilenavbaritem_8"]').die().live({
click: function() {
if (!$(this).attr('disabled')) {
alert('Do you want to exit?');
navigator.app.exitApp();

Code: Select all

             } 
         }, 
     });

exit apps

Posted: Thu Nov 14, 2013 5:22 pm
by Maryna Brodina

Hello! Could you clarify what device/version you use to test? Where did you put this code? Did you install app on device?


exit apps

Posted: Thu Nov 14, 2013 5:54 pm
by gubi

i installed app on my device, samsung S3 and Huwavi version android 4.0.4 and 4.3 , both devices not exiting app. i wrote code on click event as follows
$('#startScreen_mobilefooter1 [name="mobilenavbaritem_8"]').die().live({
click: function() {
if (!$(this).attr('disabled')) {
alert('Do you want to exit?');
navigator.app.exitApp();

}
},
});


exit apps

Posted: Thu Nov 14, 2013 8:45 pm
by Maryna Brodina

Please use Libraries version 1.1 instead 1.2 (in App settings-- External resources)