navigator.app.exitApp() not working

675 Views Asked by At

I'm using intel xdk - cordova, I'm trying to exit from app on tapping back button.But below mentioned code not working,it works only when I add crosswalk in my build settings. I don't want to add crosswalk as it is heavy.Help me to make this code work without crosswalk.

jquery

navigator.app.exitApp();
1

There are 1 best solutions below

0
On

I selected optimize with crosswalk option in build settings, now it is working fine.