React-native-apple-authentication: How to check if apple sign in support iOS version

Created on 15 Jul 2020  路  1Comment  路  Source: invertase/react-native-apple-authentication

Hi, team.

Thank you for your great works.
I've successfully implemented the apple sign in with your module. But, I found that my app installed on iOS 12 crashes if I navigate to the screen which has the AppleButton component. I guess it is caused by unsupported in the version < iOS 13.

If I'm correct, how can I check if the apple sign in is supported or no? such as;

appleAuth.checkSupport().then(isSupported => {
  // ...
}).catch(err => { console.log(err))

Most helpful comment

I found appleAuth.isSupported & appleAuth.isSignUpButtonSupported. I think I can solve my problem with it.

I'm gonna close my issue.

>All comments

I found appleAuth.isSupported & appleAuth.isSignUpButtonSupported. I think I can solve my problem with it.

I'm gonna close my issue.

Was this page helpful?
0 / 5 - 0 ratings