isAvailable static method
Returns whether Sign in with Apple is available on the current platform.
If this returns true
, getAppleIDCredential will not throw a SignInWithAppleNotSupportedException when called.
Sign in with Apple is available on:
- iOS 13 and higher
- macOS 10.15 and higher
- Android
- Web
In case Sign in with Apple is not available, the returned Future completes with false
.
Implementation
static Future<bool> isAvailable() async {
return SignInWithApplePlatform.instance.isAvailable();
}