You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently this package does not work when running the Capacitor code from an iOS simulator, unless the debug flag is set when calling FirebaseAppCheck.initialize(). This is because simulators only support running with the AppCheckDebugProvider and will fail any real device checks.
Preferred solution
As per the Firebase docs, the following code could be implemented:
classMyAppCheckProviderFactory:NSObject,AppCheckProviderFactory{func createProvider(with app:FirebaseApp)->AppCheckProvider?{#if targetEnvironment(simulator)// App Attest is not available on simulators.// Use a debug provider.returnAppCheckDebugProvider(app: app)#else// Use App Attest provider on real devices.returnAppAttestProvider(app: app)#endif}}
Plugin(s)
Current problem
Currently this package does not work when running the Capacitor code from an iOS simulator, unless the debug flag is set when calling
FirebaseAppCheck.initialize()
. This is because simulators only support running with the AppCheckDebugProvider and will fail any real device checks.Preferred solution
As per the Firebase docs, the following code could be implemented:
Alternative options
No response
Additional context
No response
Before submitting
The text was updated successfully, but these errors were encountered: