hippogamesunity / SimpleSignIn

A set of assets for Unity to authenticate users on different platforms with OAuth 2.0
4 stars 0 forks source link

Google sign in does not work on iOS #15

Closed ramsayamarin closed 3 months ago

ramsayamarin commented 3 months ago

Deep Link does not contain valid required params. URL params: { authuser = 0; code = ...

On Android it works fine.

hippogamesunity commented 3 months ago

Hello, it works for all other developers. Please read setup steps carefully. If you have any issues, please provide more details and reproduction steps.

ramsayamarin commented 3 months ago

Hi, thanks for the reply. The only difference between Android and iOS is that I have to add the URI scheme in build settings for iOS, which I did, and I also check in xcode the info.plist that it is there. So it should work as it already does in Android, and it does launch the google sign in pages, but upon return to the app nothing happens on iOS and I get this message: Deep Link does not contain valid required params. URL params: { authuser = 0; code = ...

hippogamesunity commented 3 months ago

Can you share logs? OnDeepLinkActivated (GoogleAuth.cs) should log deep links activated. Another moment is that my asset doesn't contain this error message. Can you share stacktrace as well?

ramsayamarin commented 3 months ago

I played with it more and discovered that it does work if, after the failed attempt when I shut down the app and launched it again, then it does login with Google on iOS. I have no issues with the Google sign-in on Android or the Apple sign-in on iOS, but it seems that with the Google sign-in on iOS, it causes some issues with Firebase Auth where it complains, 'User interaction is still ongoing, another view cannot be presented'. I'm currently unable to spend more time figuring this out, so I simply disabled Google Sign-in on iOS. I hope some of this information is of use to you. Thank you.

ramsayamarin commented 3 months ago

Also, I suggest in the docs that the information for various platforms be presented separately, even if it means duplicating information, because having all platforms mashed together made it very hard to read.

hippogamesunity commented 3 months ago

Your error may be related to Firebase. Test the demo scene that comes with the asset on iOS to make sure that it works.