twogate / cordova-plugin-sign-in-with-apple

A native-implemented plugin of Sign in with Apple // Thanks to your contribution! // Cordova>=8 iOS>=13
https://www.npmjs.com/package/cordova-plugin-sign-in-with-apple
MIT License
74 stars 48 forks source link

Infinite Loading with Ios Emulator #37

Open AsoStrife opened 3 years ago

AsoStrife commented 3 years ago

Hi, I don't have a physical ios device so I always use emulator with xcode to debug my code.
I've turn on "SignIn With Apple" inside capabilities in Xcode and I write the demo code in my app:

window.cordova.plugins.SignInWithApple.signin(
  { requestedScopes: [0, 1] },
  function(succ){
    console.log(succ)
    alert(JSON.stringify(succ))
  },
  function(err){
    console.error(err)
    console.log(JSON.stringify(err))
  }
)

If I tried to login with Apple Account the first two steps works good, but the third one after I insert the password remain in infinite loop loading. I don't find anything in the documentation. What could be the problem? 1 2 3

ensemblebd commented 3 years ago

known issue for a very long time on the apple forums sadly. :(

https://developer.apple.com/forums/thread/651533 https://developer.apple.com/forums/thread/90718

You can try the suggestions they have there, but some of the options they mentioned aren't viable for me so I can't attest to success rate.

AsoStrife commented 3 years ago

Ok so this is only a problem for simulator?

ensemblebd commented 3 years ago

Definitely, does not work for me either on simulator. But on the device, 100% good and functional. just have to plug in your ios phone and test on that, or use TestFlight.