Created on 17 January 2017
icon_unfollowing
Login to follow
exit-on-back

Exit On Back

Stable version 1.0.1 (Compatible with OutSystems 11)
Other versions available for 10
Uploaded on 18 January 2017 by 
exit-on-back

Exit On Back

Details
Allows exiting your application on tapping the native back on Android
Read more

Allows using back button to exit the application (per screen).

Double tap to exit available. Here's the overall procedure:

  1. Set the TapTwiceToExit boolean parameter to true, and define a grace period on TabExpiry if necessary (default: 2 seconds)
  2. When user taps the native back button, a timeout is setup for the defined expiry period, and BackTap event is triggered. This is where you can show a message saying "Tap back again to leave". Just like 9Gag for Android.
  3. If the user taps back again, you're done with him.
  4. If he doesn't tab the back button again during the period, a new event BackTapExpired is triggered by the timeout set on 2. This is where you should clear the message, because the first tap was ignored.
  5. If the user navigates between the first and second tap, the timeout is reset, and user is able to navigate using back again.

Check the demo!

Works on OutSystems Now, as it only uses standard cordova methods, only instead of exiting OutSystems Now, it goes back to the main screen... Keep tapping back!

Release notes (1.0.1)

Bug fixing and documentation on sample Demo App

Reviews (0)
Category
Device capabilities, Other device capabilities
Tags
Support options
This asset is not supported by OutSystems. You may use the discussion forums to leave suggestions or obtain best-effort support from the community, including from  who created this asset.
Dependencies
See all 1 dependencies
Application Objects
Exit On Back has 0 AOs.
Team
Compatible with
Version 11
Version 10
Stack:
All
Database:
All
Asset consumers
No consumers yet.
Weekly downloads