![]() |
VOOZH | about |
dotnet add package Plugin.Firebase.AppCheck --version 4.0.0
NuGet\Install-Package Plugin.Firebase.AppCheck -Version 4.0.0
<PackageReference Include="Plugin.Firebase.AppCheck" Version="4.0.0" />
<PackageVersion Include="Plugin.Firebase.AppCheck" Version="4.0.0" />Directory.Packages.props
<PackageReference Include="Plugin.Firebase.AppCheck" />Project file
paket add Plugin.Firebase.AppCheck --version 4.0.0
#r "nuget: Plugin.Firebase.AppCheck, 4.0.0"
#:package Plugin.Firebase.AppCheck@4.0.0
#addin nuget:?package=Plugin.Firebase.AppCheck&version=4.0.0Install as a Cake Addin
#tool nuget:?package=Plugin.Firebase.AppCheck&version=4.0.0Install as a Cake Tool
Firebase App Check helps protect backend resources from abuse by ensuring requests come from your authentic app.
Install-Package Plugin.Firebase.AppCheck
CrossFirebase.Initialize(). The plugin uses initialization hooks internally to install the provider factory at the correct moment on each platform (before Configure() on iOS, after InitializeApp() on Android).using Plugin.Firebase.AppCheck;
#if IOS
CrossFirebaseAppCheck.Configure(AppCheckOptions.Debug); // registers a "before configure" hook
CrossFirebase.Initialize(); // hook fires here
#elif ANDROID
CrossFirebaseAppCheck.Configure(AppCheckOptions.Debug); // registers an "after initialize" hook
CrossFirebase.Initialize(activity, activityProvider); // hook fires here
#endif
Note: Calling
Configure()afterCrossFirebase.Initialize()also works — the hook detects that initialization already happened and fires immediately. But calling it before is the recommended pattern because it is consistent across platforms and avoids a window where Firebase is alive without a provider.
| Provider | Platforms | Typical usage |
|---|---|---|
Disabled |
All | No provider installed (default) |
Debug |
iOS, Android | Development / CI — prints a debug token to the console |
DeviceCheck |
iOS | Production fallback on older devices |
AppAttest |
iOS (14+) | Production (preferred on iOS) |
PlayIntegrity |
Android | Production (required for Google Play) |
Configuring a provider that is not supported on the current platform throws a NotSupportedException.
Cannot instantiate FIRAppCheck log messageWhen App Check is configured with AppCheckOptions.Disabled, the plugin explicitly clears the native provider factory by calling SetAppCheckProviderFactory(null) before FirebaseApp.Configure(). The native Firebase iOS SDK then logs:
[FirebaseAppCheck][I-FAA002001] Cannot instantiate `FIRAppCheck` for app: __FIRAPP_DEFAULT
without a provider factory. Please register a provider factory using
`AppCheck.setAppCheckProviderFactory(_ ,forAppName:)` method.
This is expected and harmless. It confirms that App Check is properly disabled — no provider factory is installed, so no App Check tokens are generated or attached to requests. Without this explicit clearing, the native SDK may auto-register a default DeviceCheckProviderFactory when the FirebaseAppCheck.framework is linked, which would produce invalid placeholder tokens on simulators and cause FirebaseAuthException: The supplied auth credential is malformed or has expired errors on Auth and Functions requests.
App Check for iOS uses AdamE.Firebase.iOS.AppCheck.
Make sure your NuGet sources include the feed where that package is published (see GoogleApisForiOSComponents).
If you use AppCheckOptions.AppAttest, iOS requires:
com.apple.developer.devicecheck.appattest-environment = production (for TestFlight / App Store builds)development.Firebase note (important during beta / rollout phases):
403 PERMISSION_DENIED / App attestation failed.
Playground note:
GoogleService-Info.plist matches the Playground Bundle ID and the Firebase project where App Check is configured. A mismatch commonly looks like 403 errors (or Firebase configure errors if the plist is missing)..NET Android apps embed native .so files in the APK/AAB. If these files are compressed during packaging, the monodroid runtime crashes at startup with:
F monodroid: ALL entries in APK named `lib/arm64-v8a/` MUST be STORED.
This is not an App Check bug — it can happen whenever a new NuGet adds native interop libraries (like the Firebase AppCheck SDK). The fix is a single MSBuild property in your .csproj:
<PropertyGroup Condition="'$(TargetFramework)' == 'net10.0-android'">
<AndroidStoreUncompressedFileExtensions>so;dll</AndroidStoreUncompressedFileExtensions>
</PropertyGroup>
This is the standard .NET Android MSBuild property. It works with both APK and AAB formats and is compatible with Google Play requirements.
Do NOT use
AndroidPackageFormat=apkorEmbedAssembliesIntoApk=trueas a workaround for this issue — those properties serve different purposes (debug speed, distribution format) and are not needed to fix native library compression.
See also the for a working reference.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. net9.0-android net9.0-android was computed. net9.0-android35.0 net9.0-android35.0 is compatible. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-ios18.0 net9.0-ios18.0 is compatible. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
Showing the top 1 NuGet packages that depend on Plugin.Firebase.AppCheck:
| Package | Downloads |
|---|---|
|
Plugin.Firebase
The plugin includes cross-platform APIs for Firebase Analytics, Auth, Cloud Messaging, Crashlytics, Dynamic Links, Firestore, Cloud Functions, Remote Config and Storage. |
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 15,351 | 3/1/2026 |