Sayan Nandy
Posts: 0
Joined: Sat Mar 07, 2015 5:28 am

navigator.app.exitApp() not working from apk file

Hi Alena,

I have built the apk using appery.io and then transferred it to my Asus_T00J Zenfone 5 with Android 4.4.2 (KitKat). There on clicking the close button with the code as shown in the above snapshot, the app is not closing. I can send you the apk if you share the email id. Actually I deleted some of the plugins to reduce the size of the apk (as with only a couple of pages it's size was around 2.2 mb which reduced to 1.7 mb on deletion of some plugins), I am not quite sure whether that is creating the problem or not!
Kindly help me resolve the issue.

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

navigator.app.exitApp() not working from apk file

Hello Sayan,
1) you shouldn't delete plugins unless it's Barcode Scanner, which was described how to delete from Appery.io project. If you changed anything else it can cause unpredictable behavior.

2)One of next lines you used should work in app to exit
navigator.app.exitApp();
navigator.device.exitApp();

Sayan Nandy
Posts: 0
Joined: Sat Mar 07, 2015 5:28 am

navigator.app.exitApp() not working from apk file

Hi Egor,

Can you tell me which plugin is responsible for the function and how to add it again!!!
Otherwise I will have to delete the entire project and make it again...

Egor Kotov6832188
Posts: 0
Joined: Wed Nov 19, 2014 5:15 pm

navigator.app.exitApp() not working from apk file

Hello Sayan,

1) open source tab
2) delete all files/folders under OS you have changed
3) Click on engine icon and sekect "Undo all changes"
4) All be restored
Note: if you have 3rd party plugins, which was integrated, they all will be lost.

Return to “Issues”