logto-io / dart

Logto Flutter SDKs.
MIT License
17 stars 9 forks source link

doc: social logins signups redirect loop on android when android:taskAffinity="" #60

Open wildsylvan opened 1 month ago

wildsylvan commented 1 month ago

when creating a new flutter app, the default template puts android:taskAffinity="" in android\app\src\main\AndroidManifest.xml and that makes registering a user through social login (e.g. google) not work correctly. basically the account is registered successfully in logto but logto doesn't redirect to the app, instead loops back to the google sign up screen:

image

image

image

image

image

(here the user is correctly registered in logto but then logto redirects to the google sign up confirmation again)

image

removing android:taskAffinity="" fixes the issue

wildsylvan commented 1 month ago

see: https://github.com/flutter/flutter/issues/63559