Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Question Google Sign In Canceled in IOS

Discussion in 'iOS and tvOS' started by boaasec, Jul 27, 2020.

  1. boaasec

    boaasec

    Joined:
    Oct 9, 2014
    Posts:
    2
    Hi all,

    i use google-signin-unity plugin and update it according to this link https://github.com/lukezbihlyj/google-signin-unity/commit/acaaf793db04ecd4fe71af724acef29fca2e4e34

    In android everything is fine,
    but while i click to sign in button in ios app i get pop-up saying "app" wants to use "google.com" to Sign In ;
    but it close after 1 second everytime and i cannot click "Continue"

    I also use facebook plugin for ios and it works fine both in Android and IOS. But google sign in behave like i mentioned above in IOS app.

    I tried several solutions from my google search but still it is not working for me. Is there anyone saw and solved this problem in Unity for IOS app before?

    In xcode debug i get below error;

    ---------------
    didSignInForUser: The user canceled the sign-in flow.

    Task is Canceled

    <SignInGoogle>c__AnonStorey0:<>m__0(Task`1)

    System.Threading.Tasks.<>c__DisplayClass4_0:<ContinueWith>b__0(Task)

    System.Threading.Tasks.<>c__DisplayClass22_0:<ContinueWith>b__0(Task)

    System.Threading.Tasks.<>c__DisplayClass20_1`1:<ContinueWith>b__2()

    System.Threading.Tasks.<>c:<.cctor>b__32_1(Action)

    System.Threading.Tasks.Task`1:RunContinuations()

    System.Threading.Tasks.Task`1:TrySetCanceled()

    System.Threading.Tasks.TaskCompletionSource`1:SetCanceled()

    Google.<WaitForResult>c__Iterator0:MoveNext()

    UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)


    (Filename: /Users/builduser/buildslave/unity/build/Runtime/Export/Debug.bindings.h Line: 43)
    -----------------
     
  2. mursidmayadem

    mursidmayadem

    Joined:
    Sep 7, 2020
    Posts:
    1
    Hi, did you find any solution for this issue?
     
  3. boaasec

    boaasec

    Joined:
    Oct 9, 2014
    Posts:
    2
    Hi,

    i tried several solutions not only in unity but also in xcode, but no.
     
  4. bonestudiosm

    bonestudiosm

    Joined:
    Oct 13, 2021
    Posts:
    7
    Hello my friend, I faced the same problem as yours and I searched for a long time to find a solution and finally found a solution and I created a video explaining the steps but in Arabic, you can follow the steps to solve your problem




    cheers :)
     
    leobilck likes this.
  5. ianwong_unity

    ianwong_unity

    Joined:
    Apr 12, 2022
    Posts:
    7
    Thanks man. I was struggling and this really works.