[firebase_app_check]: App Attest does not work on macOS and fails to fallback to DeviceCheck
Is there an existing issue for this?
- [X] I have searched the existing issues.
Which plugins are affected?
App Check
Which platforms are affected?
iOS, macOS
Description
The firebase app check initialization for apple using:
await FirebaseAppCheck.instance.activate(
androidProvider: AndroidProvider.playIntegrity,
appleProvider: AppleProvider.appAttestWithDeviceCheckFallback,
);
does not work when running an iOS/iPad app (not a macOS app) on macOS (apple silicon).
It used to work with AppleProvider.deviceCheck perfectly well, but since I changed it to AppleProvider.appAttestWithDeviceCheckFallback it completely stopped working as I have enforced App Check on all my services (meaning I'm getting Unauthenticated errors).
App Attest states that it works on iOS and macOS 14+ and I'm using macOS 17.6.1 but even then this shouldn't be the case as when App Attest fails it should fallback to DeviceCheck which works on macOS.
I already have setup App Attest according to the Firebase docs and the proof of it working is the iOS devices are getting the app check token and works well.
Reproducing the issue
You can use the example app for firebase_app_check with App Attest configured on macOS.
Firebase Core version
3.3.0
Flutter Version
3.24.0
Relevant Log Output
No response
Flutter dependencies
Expand Flutter dependencies snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response