coolishbee / universal-sdk-unity

The Universal SDK for Unity provides a modern way of implementing Social Login APIs.
45 stars 11 forks source link

iOS Google Login Fail #40

Closed hendlake8 closed 4 months ago

hendlake8 commented 4 months ago

failgoogle I've configured as shown in the picture in UniversalSDKSettings, but when trying to do Google login on iOS, it says 'googleClientID is empty'. Is there anything else I need to set?

coolishbee commented 4 months ago

Did OnPostProcessBuild() work properly? Please check it out. Sometimes unity editor bugs occur.

hendlake8 commented 4 months ago

sdkFail OnPostProcessBuild() is being called correctly. However, in the null check part of the instance in the UniversalSDKSettings load syntax, the null check was not properly done using the ReferenceEquals function. So, I changed it to 'instance == null', and after doing so, I confirmed that the clientID was properly inserted into the Info.plist file and Google login is now working.

hendlake8 commented 4 months ago

Do I need to include the ReversedClientID in the info.plist file even though there is no usage of it?

coolishbee commented 4 months ago

sdkFail OnPostProcessBuild() is being called correctly. However, in the null check part of the instance in the UniversalSDKSettings load syntax, the null check was not properly done using the ReferenceEquals function. So, I changed it to 'instance == null', and after doing so, I confirmed that the clientID was properly inserted into the Info.plist file and Google login is now working.

Thank you I will fix the bug soon

coolishbee commented 4 months ago

Do I need to include the ReversedClientID in the info.plist file even though there is no usage of it?

If you do not use iOS Google login, you can leave it blank. If not, it becomes a requirement.

coolishbee commented 4 months ago

Released as unity sdk 1.2.10