Native Close Page (Back) Action - Mendix Forum

Native Close Page (Back) Action

25

In a Native app, it would be great to have the option to define a custom close action (similar to pop-up pages on web) so that I can execute arbitrary logic when the user presses the back button (in the header) to close the current page.

This would allow me to implement behavior to check with the user before discarding and losing changes, enforce certain page paths, etc.

Thanks!

asked
1 answers

Workaround for now to do a rollback in the OnUnload action in the AppEvents (NativeMobileResources) widget. When you close the page, the AppEvents widget gets unmounted and therefore the OnUnload action will trigger.

Created