Skip to content
Feralin

Developers

Objective-C: quickstart

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

Install

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

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

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

First use

@import FeralinObjC;

FRLConfiguration *ayar = [[FRLConfiguration alloc] initWithProjectKey:@"pk_live_..."
                                                           collectURL:@"https://collect.example.com"];
ayar.consent = [[FRLConsent alloc] initWithAnalytics:YES advertising:NO personalization:NO sessionReplay:NO];

NSError *hata = nil;
FRLFeralin *feralin = [[FRLFeralin alloc] initWithConfiguration:ayar error:&hata];

[feralin track:@"order_completed"
    properties:@{@"order_id": @"ord_1", @"amount": @249.9}
    completion:^(NSString *eventID, NSError *error) { /* izin yoksa ikisi de nil */ }];

[feralin flushWithCompletion:^(FRLFlushResult *sonuc, NSError *error) {
    if (sonuc.ok) { /* sonuc.accepted, sonuc.batchID */ }
}];

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

Capabilities

Objective-C capability status
CapabilityStatus
Event sendingPlanned
Batch sendingPlanned
Consent handlingPlanned
IdentityPlanned
AttributionPlanned
Deep linksPlanned
RevenuePlanned
Error capturePlanned
Session replayNot applicable
TracingPlanned

Verification chain

Objective-C verification chain
LinkStatus
SourcePartial
BuildNot run
TestNot run
Registry publicationWaiting for external access
Clean installNot run
Event receiptNot run
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.