Soenneker.Maui.Firebase.Analytics
4.0.284
Prefix Reserved
dotnet add package Soenneker.Maui.Firebase.Analytics --version 4.0.284
NuGet\Install-Package Soenneker.Maui.Firebase.Analytics -Version 4.0.284
<PackageReference Include="Soenneker.Maui.Firebase.Analytics" Version="4.0.284" />
<PackageVersion Include="Soenneker.Maui.Firebase.Analytics" Version="4.0.284" />
<PackageReference Include="Soenneker.Maui.Firebase.Analytics" />
paket add Soenneker.Maui.Firebase.Analytics --version 4.0.284
#r "nuget: Soenneker.Maui.Firebase.Analytics, 4.0.284"
#:package Soenneker.Maui.Firebase.Analytics@4.0.284
#addin nuget:?package=Soenneker.Maui.Firebase.Analytics&version=4.0.284
#tool nuget:?package=Soenneker.Maui.Firebase.Analytics&version=4.0.284
Soenneker.Maui.Firebase.Analytics
Provides a small Android and iOS abstraction for logging Firebase Analytics events and setting user attributes from a .NET MAUI app.
Installation
dotnet add package Soenneker.Maui.Firebase.Analytics
Configure the native Firebase app first with Soenneker.Maui.Firebase, including the platform's google-services.json or GoogleService-Info.plist.
Registration
Register the analytics service in MauiProgram.CreateMauiApp:
using Soenneker.Maui.Firebase.Analytics.Registrars;
using Soenneker.Maui.Firebase.Dtos;
using Soenneker.Maui.Firebase.Registrars;
builder.UseFirebase(new FirebaseConfig())
.Build();
builder.Services.AddFirebaseAnalyticsServiceAsSingleton();
The service is registered only for Android and iOS targets.
Usage
Inject IFirebaseAnalyticsService into a page, view model, or application service:
using Soenneker.Maui.Firebase.Analytics.Abstract;
public sealed class CheckoutTracker(IFirebaseAnalyticsService analytics)
{
public void Completed(string orderType)
{
analytics.LogEvent("checkout_completed", new Dictionary<string, string>
{
["order_type"] = orderType
});
}
public void IdentifySignedInUser(string internalUserId)
{
analytics.SetUserId(internalUserId);
analytics.SetUserProperty("account_tier", "pro");
}
}
Event parameters in this abstraction are string values. Event names, parameter names, and user-property names must satisfy Firebase Analytics naming and quota rules; invalid data is handled by the native SDK.
Use an opaque application identifier for SetUserId. Do not send names, email addresses, or other personally identifiable information, and obtain any consent required by the app's privacy policy before collecting analytics.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-android36.0 is compatible. net10.0-browser was computed. net10.0-ios was computed. net10.0-ios26.0 is compatible. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Maui.Controls (>= 10.0.100)
- Soenneker.Maui.Firebase (>= 4.0.191)
-
net10.0-android36.0
- Microsoft.Maui.Controls (>= 10.0.100)
- Soenneker.Maui.Firebase (>= 4.0.191)
- Xamarin.AndroidX.Fragment.Ktx (>= 1.8.9.4)
- Xamarin.AndroidX.Lifecycle.LiveData (>= 2.11.0.1)
- Xamarin.AndroidX.Lifecycle.Process (>= 2.11.0.1)
- Xamarin.AndroidX.Lifecycle.Runtime.Ktx (>= 2.11.0.1)
- Xamarin.AndroidX.Lifecycle.ViewModel.Ktx (>= 2.11.0.1)
- Xamarin.AndroidX.SavedState.SavedState.Ktx (>= 1.5.0.1)
- Xamarin.Firebase.Analytics (>= 123.2.0.1)
-
net10.0-ios26.0
- Microsoft.Maui.Controls (>= 10.0.100)
- Soenneker.Maui.Firebase (>= 4.0.191)
- Xamarin.Firebase.iOS.Analytics (>= 8.10.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.284 | 0 | 8/30/2026 |
| 4.0.283 | 0 | 8/30/2026 |
| 4.0.282 | 37 | 8/30/2026 |
| 4.0.281 | 36 | 8/29/2026 |
| 4.0.280 | 32 | 8/29/2026 |
| 4.0.279 | 41 | 8/29/2026 |
| 4.0.278 | 40 | 8/26/2026 |
| 4.0.277 | 46 | 8/25/2026 |
| 4.0.276 | 87 | 8/21/2026 |
| 4.0.275 | 83 | 8/20/2026 |
| 4.0.274 | 106 | 7/29/2026 |
| 4.0.273 | 106 | 7/29/2026 |
| 4.0.272 | 99 | 7/28/2026 |
| 4.0.271 | 92 | 7/28/2026 |
| 4.0.270 | 94 | 7/27/2026 |
| 4.0.269 | 88 | 7/27/2026 |
| 4.0.268 | 93 | 7/27/2026 |
| 4.0.267 | 102 | 7/22/2026 |
| 4.0.266 | 102 | 7/22/2026 |
| 4.0.265 | 105 | 7/16/2026 |
Update dependency Soenneker.Maui.Firebase to 4.0.191 (#794)