How to implement onDestory after user leaves the page, MOBILE APP

How do you call a onDestroy action when the user leave the screen?


Hello Wei,

There is no need. If you implement an action and bind it to the Destroy event of a page, the action will be called automatically.

You can read more about the page life cycle in mobile here: