Platform differences
| Method | iOS | Android |
|---|---|---|
isSupported() | true | false |
signIn(options?) | Shows Apple's sheet through AuthenticationServices | Rejects with NOT_SUPPORTED |
getCredentialState(userId) | Asks ASAuthorizationAppleIDProvider | Rejects with NOT_SUPPORTED |
iOS
- Requires iOS 16 or newer.
- No third-party SDK: the Swift implementation uses
AuthenticationServicesandCryptoKit(for the nonce hash). - The sheet and its callbacks run on the main thread.
Android
Apple has no native Sign in with Apple on Android. The Kotlin implementation exists so the same JavaScript runs on both platforms: isSupported() returns false and the other methods reject with NOT_SUPPORTED.
if (AppleSignIn.isSupported()) {
// render the Sign in with Apple button
}