You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2022. It is now read-only.
When Window.exitOnBack is set to true, the back button is supposed to close the main activity of the Titanium app. What we're doing instead is:
$this.addEventListener('androidback', function() {
$this.exitOnClose = true; // Set exitOnClose to true, since every window is an activity
Ti.Android.currentActivity.finish();
});
which means that the main activity of the app still exists even after pressing the back button.
One side effect is that the previous intent data is retained if we open the app again from the opened apps menu, which means that, if we start the app with a url schema, it will be read again.
The text was updated successfully, but these errors were encountered:
Jei
changed the title
Android: Window.exitOnBack does not close the app fully
Android: Window.exitOnBack closes the current activity instead of the main
Jul 18, 2018
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
When
Window.exitOnBack
is set to true, the back button is supposed to close the main activity of the Titanium app. What we're doing instead is:which means that the main activity of the app still exists even after pressing the back button.
One side effect is that the previous intent data is retained if we open the app again from the opened apps menu, which means that, if we start the app with a url schema, it will be read again.
The text was updated successfully, but these errors were encountered: