From 73f91891ee017d280dab02710f41ecaa9ee97a0b Mon Sep 17 00:00:00 2001 From: Nico Mexis Date: Mon, 2 Sep 2024 15:19:19 +0200 Subject: [PATCH] Add specific instructions for troubleshooting launch mode and task affinity on Android Fixes #113 --- flutter_web_auth_2/README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/flutter_web_auth_2/README.md b/flutter_web_auth_2/README.md index e84b5ea..06457a2 100644 --- a/flutter_web_auth_2/README.md +++ b/flutter_web_auth_2/README.md @@ -302,6 +302,7 @@ When you use this package for the first time, you may experience some problems. - If you want to have a callback URL with `http` or `https` scheme, you also need to specify a host etc. See [c:geo](https://github.com/cgeo/cgeo/blob/d7ab67629ac4798adaae194e563afe7df134fcd0/main/AndroidManifest.xml#L164) as an example for this. +- There is also a known problem with task affinities and launch modes (see [#113](https://github.com/ThexXTURBOXx/flutter_web_auth_2/issues/113)). In order to ensure that `flutter_web_auth_2` works correctly, set `android:launchMode="singleTop"` and remove any `android:taskAffinity` entries. This configuration is guaranteed to work. ### Troubleshooting OAuth redirects