7
Views
1
Comments
IPhone Turn Off Event
Question

Hello,

I need to run an action when i get off my mobile application.

I had configured these events:

document.addEventListener("pause", RunAction, false);
document.addEventListener("resign", RunAction, false);

function RunAction() {
    $actions.RunAction();
}

All work but when I turn the IPhone off it doesn't fire any event.

What should be the event for this situation?

Thanks,

Alexandre Reis.

UserImage.jpg
G Andrew Duthie
 
MVP
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.