New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android: Set launchMode="singleTask" instead of "singleTop" #639
Conversation
Thanks for debugging and fixing this! Let's make this two commits: first |
380df7d
to
1e9a27d
Compare
Cool; done, PTAL. |
This looks like a security-hardening measure that would be good to do, independently of the upcoming change to launchMode="singleTask". Discussion: https://chat.zulip.org/#narrow/stream/48-mobile/topic/Flutter.20app.20.2B.20SAML.20auth/near/1790071
Thanks! Looks good; merging, with two commit-message tweaks. One is a minor formatting change to make a paragraph wrap better, and the other a small correction or clarification:
In particular the key about <activity
android:theme="@ref/0x1030007"
android:name="io.flutter.plugins.urllauncher.WebViewActivity"
android:exported="false" /> and those wouldn't be appropriate for |
This addresses zulip#620 by making it so the whole app state isn't reset when coming back from Firefox in the web-auth flow. Discussion: https://chat.zulip.org/#narrow/stream/48-mobile/topic/Flutter.20app.20.2B.20SAML.20auth/near/1776828 Later in that discussion, Greg found that this mode is the most appropriate for the main activity of our app: https://chat.zulip.org/#narrow/stream/48-mobile/topic/Flutter.20app.20.2B.20SAML.20auth/near/1790019 Fixes: zulip#620
1e9a27d
to
1135860
Compare
I see; interesting. Thanks! |
This addresses #620 by making it so the whole app state isn't reset when coming back from Firefox in the web-auth flow. Discussion:
https://chat.zulip.org/#narrow/stream/48-mobile/topic/Flutter.20app.20.2B.20SAML.20auth/near/1776828
Later in that discussion, Greg found that this mode is the most appropriate for our app, and that setting taskAffinity="" is probably a good idea as a security-hardening measure.
Fixes: #620