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.tgzFirst 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östermeyinCode 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
| Capability | Status |
|---|---|
| Event sending | Partial |
| Batch sending | Partial |
| Consent handling | Partial |
| Identity | Partial |
| Attribution | Partial |
| Deep links | Partial |
| Revenue | Partial |
| Error capture | Not supported |
| Session replay | Not applicable |
| Tracing | Planned |
Verification chain
| Link | Status |
|---|---|
| Source | Partial |
| Build | Partial |
| Test | Passed |
| Registry publication | Waiting for external access |
| Clean install | Not run |
| Event receipt | Not run |
| Documentation | Passed |
| Super Admin proof | Not 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.