Skip to content
Feralin

Developers

.NET MAUI: quickstart

Install and first-use steps for sending events to Feralin with .NET MAUI. Code samples come from the SDK's own README and statuses from the capability record.

Install

There is no package published on NuGet yet. The package is downloaded from feralin.com; the commands first verify the SHA-256 digest of feralin-maui-0.1.0.tar.gz and stop if verification fails.

mkdir -p feralin-sdk
curl -fsSL https://feralin.com/sdk/packages/feralin-maui-0.1.0.tar.gz -o feralin-sdk/feralin-maui-0.1.0.tar.gz
echo "39ef292ba20ad3fc6943cd122d877e2a28cbd001d2bec09da04087496e7daa00  feralin-sdk/feralin-maui-0.1.0.tar.gz" | sha256sum -c -
tar -xzf feralin-sdk/feralin-maui-0.1.0.tar.gz -C feralin-sdk

After extracting the archive, follow the Installation section in feralin-sdk/feralin-maui-0.1.0/README.md.

First use

using Feralin;
using Feralin.Maui;

public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder.UseMauiApp<App>().UseFeralin(options =>
        {
            options.ProjectKey = "pk_live_ORNEK";
            options.CollectUrl = "https://collect.ornek.com";
        });
        return builder.Build();
    }
}

// Sayfada veya servisde enjekte edin:
public sealed class HomeViewModel(FeralinClient feralin)
{
    public void OnConsentGiven() => feralin.SetConsent(new Consent(Analytics: true));
    public void OnOpened() => feralin.Track("screen_view", new Dictionary<string, object?> { ["screen"] = "home" });
}
builder.UseFeralin(options =>
{
    options.ProjectKey = "pk_live_ORNEK";
    options.CollectUrl = "https://collect.ornek.com";
    options.InstallCode = kurulumKodu;   // Feralin kurulum ekranındaki kod; ilk olaya fr_install_code olarak bir kez eklenir
    // options.AppVersion verilmezse platformun AppInfo.VersionString değeri fr_error olaylarında kullanılır
});

feralin.Group("acme-team", new Dictionary<string, object?> { ["plan"] = "team" });          // fr_group
feralin.SetUserProperties(new Dictionary<string, object?> { ["plan"] = "pro" });            // fr_user_properties
feralin.TrackRevenue(new RevenueInput("ord_1", 4999, "TRY") { ProductId = "pro" });        // feralin_purchase (istemci beyanı)
try { Odeme(); } catch (Exception ex) { feralin.CaptureError(ex); }                        // fr_error

Code samples are taken as they are from sdks/maui/README.md; comments inside may be in Turkish. You create the project key in the dashboard.

Capabilities

.NET MAUI capability status
CapabilityStatus
Event sendingPartial
Batch sendingPartial
Consent handlingPartial
IdentityPartial
AttributionPartial
Deep linksPlanned
RevenuePartial
Error capturePartial
Session replayNot applicable
TracingPlanned

Verification chain

.NET MAUI verification chain
LinkStatus
SourcePassed
BuildPartial
TestPassed
Registry publicationWaiting for external access
Clean installPassed
Event receiptPartial
DocumentationPassed
Super Admin proofNot started

Passed means local evidence: source, build and tests ran. Registry publication and Super Admin proof are separate links; the SDK is not called ready until each has passed.