Hi! Thanks for great plugin!
I faced with strange behaviour. appleAuth.isSupported always false.
Phone 6s, iOS 13.2.3,
macOS 10.15.2,
react-native 0.61.2
Interesting, not sure why this would be false unless the device isn't iOS 13+; the logic happens on native here:
And read in JS here: https://github.com/invertase/react-native-apple-authentication/blob/master/lib/AppleAuthModule.js#L39
@Salakar maybe I can try to logging native part somehow?
I put NSLog(@"%@", @available(iOS 13 .0, *) ? @"IOS13.YES" : @"IOS13.NO"); into my AppDelegate.m and got IOS13.YES on Xcode console.
get isSupported() {
console.log('NATIVE: ', this.native)
return this.native ? this.native.isSupported : false;
}
I got
NATIVE: undefined
Oh, my bad! I forgot pod install. Maybe I send pr to update documentation?
@VictorKolb I'm really confused what is happening here. To get this to work I had to add this to my Podfile:
pod 'RNAppleAuthentication', :path => '../node_modules/@invertase/react-native-apple-authentication'
Is that what you did as well?
As far as I know, this shouldn't be necessary with Auto-linking, so I'm really confused why this doesn't work automatically.
Can anyone confirm if this is a bug in the library or if I just have something weird in my setup?
@traviswimer something weird in your setup I believe, it was not necessary for me
Probably missing one of the two lines that pull in the Podfile auto-linking code and then execute it:
Note that it appears the example has the pod defined, but notice the reference is to ../../ - that's just to reference the raw code during dev. In my work project I have no reference
@mikehardy Good call, I was missing line 3. I guess this just happened to not effect other Auto-linked libraries I'm using.
¯\_(ツ)_/¯
Most helpful comment
Oh, my bad! I forgot
pod install. Maybe I send pr to update documentation?