DEV Community

Cover image for An in-depth guide to Sign in with Apple using React Native

An in-depth guide to Sign in with Apple using React Native

Karan Pratap Singh on March 16, 2020

Greetings, React Native Community! In this article, I will be breaking down the step-by-step process of integrating Apple Sign-in using React Nat...
Collapse
 
isacjeppsson96 profile image
isacjeppsson96 •

Hi Karan, I have completed your guide and everything seems to be forking when it comes to xCode and the Apple Developer Console at least. But when I try to login using the simulator I get the error that the device is not supported, encouraging me to use the value of appleAuth.isSupported to check the device before hand. The thing is, the simulator is version 13.4.1 so it should work. Do you know what might be the issue?

Collapse
 
karanpratapsingh profile image
Karan Pratap Singh •

Hey, this is not an issue with your code. This is expected as apple doesn’t allow services like apple login, push notifications, apple pay from simulator. I also faced this in the past and had to test on my friends phone until I bought a new ios 13 device . Unfortunately you’ll need a real iOS device to test. I think it’s good to use isSupported property to prevent crashes. Hopefully this helps you

Collapse
 
isacjeppsson96 profile image
isacjeppsson96 •

Oh, thank you, I will try that. That saved me some headache !

Thread Thread
 
karanpratapsingh profile image
Karan Pratap Singh •

No issues, glad this article helped you

Collapse
 
pierastana profile image
Pierastana •

Hi Karan, nice guide for an argument not so popular.
I'm learning now to program application with cordova and ionic and I've a problem with the upload of the app in the Apple Store because it says that I need a "Apple login".
Do you know if there is a nice guide as your one for the integration with Cordova/Angular?

Collapse
 
karanpratapsingh profile image
Karan Pratap Singh •

Sorry I haven’t worked with cordova

Collapse
 
eizurieta profile image
eizurieta •

Hi Karan, thanks for this great guide. Know I can sign in using Apple Sign In, but it only work with IOS devices, I need to also implement the Apple Sign In for Android Devices. Maybe do you know how can achieve that. I really appreciate your efforts.

Collapse
 
karanpratapsingh profile image
Karan Pratap Singh •

Thanks for reading, sign in with apple is ios/macos (web) only feature as far as I know

Collapse
 
lfkwtz profile image
Michael Lefkowitz •

Love this! Shared in React Native Now #61

Collapse
 
karanpratapsingh profile image
Karan Pratap Singh •

Thank you for sharing Michael

Collapse
 
danphp7 profile image
Carlos Daniel •

I followed all the steps, but I got this error

[Error: The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1000.)]
Enter fullscreen mode Exit fullscreen mode
Collapse
 
vasylnahuliak profile image
Vasyl Nahuliak •

In my case I forgot add Apple Sign Compatibility