#✅ - social login google stuck on android device
10 messages · Page 1 of 1 (latest)
I also have issues with social login, but using flutter and Authenticator. It works fine in ios, but it is stuck on Android, and it looks like it cant validate the ssl connection:
the domain and ssl are correctly setup in cognito (also tried with cognito's generated domain)
besides that, I see no errors in the logs
I've also tried adding android:usesCleartextTraffic="true" without success.
if I open the domain directly in chrome in android, it states the connection is secure
uff.. finally got it working! 🙂
sorry, it's the first time I setup such thing in android and the documentation could be a bit more clear about it (information spreaded accross different parts of the documentation, plus some missing explanation, which might be obvious for android devs).
basically my issue was that I didnt have a matching scheme in my manifest file with cognito settings.
in auth resources.ts:
"redirect_sign_in_uri": [
"teachtech2me://callback/"
],
"redirect_sign_out_uri": [
"teachtech2me://signout/"
],
these will be setup in cognito as allowed redirect uris, which must match with the data schema within the intent-filter in AndroidManifest.xml:
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data android:scheme="teachtech2me" />
</intent-filter>
yes need to add intent filter
✅ - social login google stuck on android device