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
Copy file name to clipboardExpand all lines: flutter_web_auth_2/README.md
+10-5Lines changed: 10 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,6 +89,7 @@ final accessToken = jsonDecode(response.body)['access_token'] as String;
89
89
The following constraints have been added in `5.0.0`:
90
90
- The existing Android approach has been replaced with a new (improved) one (no migration necessary; is automatically used)
91
91
- Android now uses Auth Tab: `httpsHost` and `httpsPath` are now required on Android if you are using a `https` in `callbackUrlScheme`
92
+
- On Android, issues with `taskAffinity`s have been fixed and it is strongly advised to set `android:taskAffinity=""` for all exported `Activity`s (this usually includes your `MainActivity` and `flutter_web_auth_2`'s `CallbackActivity`)
92
93
- Dart SDK `>=3.5.0` is now required (due to migration to melos `7.x`)
93
94
94
95
### Upgrading to `4.x`
@@ -163,7 +164,8 @@ In order to capture the callback url, the following `activity` needs to be added
- If you want to have a callback URL with `http` or `https` scheme, you also need to specify a host etc.
325
330
See [c:geo](https://github.com/cgeo/cgeo/blob/d7ab67629ac4798adaae194e563afe7df134fcd0/main/AndroidManifest.xml#L164) as an example for this.
326
-
- 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.
331
+
- In older versions of this package, there was 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 on these versions (prior to `5.0.0-alpha.2`), set `android:launchMode="singleTop"` and remove any `android:taskAffinity` entries. This configuration is guaranteed to work. In newer versions, this should not cause problems!
0 commit comments