Skip to content
Feralin

Developers

Cordova: quickstart

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

Install

There is no package published on npm yet. The package is downloaded from feralin.com; the commands first verify the SHA-256 digest of cordova-plugin-feralin-0.1.0.tgz and stop if verification fails.

npm install https://feralin.com/sdk/packages/cordova-plugin-feralin-0.1.0.tgz

First use

document.addEventListener("deviceready", async () => {
  const ready = await Feralin.initialize({
    projectKey: "pk_live_...",                 // yalnız public anahtar; sk_ reddedilir
    collectUrl: "https://collect.example.com",
    consent: kayitliKarar(),                   // CMP'nizin saklı kararı
    attribution: { apiUrl: "https://api.example.com", projectId: "prj_..." }, // iOS ertelenmiş derin bağlantı için
  });
  if (!ready) return;

  await Feralin.trackFirstOpen();              // iOS: kurulum başına bir kez; Android: "automatic"
  await Feralin.track("level_up", { level: 3 });
  await Feralin.identify("kullanici_42");      // PII vermeyin
  await Feralin.trackRevenue({ transactionId: "order_1", amountMinor: 4999, currency: "TRY" });

  const link = await Feralin.consumeDeferredDeepLink();
  if (link.status === "delivered") router.open(link.path); // yolu kendi tablonuzla eşleştirin
});
Feralin.setPushToken(token);                 // Android: FCM kayıt belirteci; iOS: APNs belirtecinin onaltılı yazımı
if (Feralin.isUninstallCheck(message.data)) return; // Feralin'in sessiz bildirimi: kullanıcıya göstermeyin

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

Capabilities

Cordova capability status
CapabilityStatus
Event sendingPartial
Batch sendingPartial
Consent handlingPartial
IdentityPartial
AttributionPartial
Deep linksPartial
RevenuePartial
Error captureNot supported
Session replayNot applicable
TracingPlanned

Verification chain

Cordova verification chain
LinkStatus
SourcePartial
BuildPartial
TestPassed
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.