Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

Catch event when user 'exit' the app

Hi Team,

I wonder if I can catch the event when user on a mobile device press "last" button on android, or home button on both android and iOS. or swipe to scroll down the settings screen.
Because I want to do a data update via service just before users quit.

If yes, which event I should use.

Thanks

Dongzhi

Dongzhi Yang7528784
Posts: 0
Joined: Mon May 11, 2015 6:28 am

Catch event when user 'exit' the app

Hi Sergiy,

I tried the pause event , but it doesn't work as expected.
e.g. I put in the following code into the pause event,

alert("are you sure you want to quit?");

---------

when I press last button or home button, the app just immediately hide to background without showing the alert message.

I also used Weinre to debug the pause event, it just doesn't fire when the app is put into background as it should.

Thanks

Dongzhi

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

Catch event when user 'exit' the app

Also you can use "backbutton" event for the such functionality.

Unfortunately this is something outside the scope of standard Appery.io platform support. You may consider purchasing Advisory Pack to get more in-depth help on this question. Here is more information about Advisory Pack (http://appery.io/services/#Advisory_Pack).

Return to “Issues”