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

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

  

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

Solution

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: https://success.outsystems.com/Documentation/10/Developing_an_Application/Implement_Application_Logic/Screen_and_Block_Lifecycle_Events

Cheers.

Solution