@attribra/react-native 2.9.8 → 2.9.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALL.md +4 -4
- package/README.md +0 -2
- package/package.json +1 -1
- package/src/AurionSignal.ts +1 -1
package/INSTALL.md
CHANGED
|
@@ -39,7 +39,7 @@ Attribra.configure({
|
|
|
39
39
|
|
|
40
40
|
6. Product events: `await Attribra.track('sign_in')`
|
|
41
41
|
|
|
42
|
-
**Offline events (SDK 2.9+):** if the device is offline or the request times out / 5xx, `track` / `trackBatch` / `open_app` / `app_install` / `reattributed` are stored locally (up to 100) and sent when the network is back (app foreground, next successful send, or NetInfo if installed). `
|
|
42
|
+
**Offline events (SDK 2.9+):** if the device is offline or the request times out / 5xx, `track` / `trackBatch` / `open_app` / `app_install` / `reattributed` are stored locally (up to 100) and sent when the network is back (app foreground, next successful send, or NetInfo if installed). `Attribra.flushQueue()` forces a flush; `pendingQueueSize()` shows how many are waiting.
|
|
43
43
|
|
|
44
44
|
Deep links with `campaign_id` / `utm_*` are captured automatically. One `app_install` is sent per device after a short grace window so cold-start App Links are attributed.
|
|
45
45
|
|
|
@@ -60,9 +60,9 @@ After install, the SDK also sends `open_app` on cold start and when the app retu
|
|
|
60
60
|
|
|
61
61
|
```tsx
|
|
62
62
|
// Tests / manual paste — not required for production deep links
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
await
|
|
63
|
+
Attribra.applyAttributionFromUrl(url)
|
|
64
|
+
Attribra.applyInstallReferrer(referrer)
|
|
65
|
+
await Attribra.flushInstall()
|
|
66
66
|
```
|
|
67
67
|
|
|
68
68
|
## SKAdNetwork (iOS, SDK 2.7+)
|
package/README.md
CHANGED
|
@@ -44,8 +44,6 @@ await Attribra.track('sign_in')
|
|
|
44
44
|
|
|
45
45
|
Create an API key in the Attribra dashboard (**API Keys**, prefix `asg_`).
|
|
46
46
|
|
|
47
|
-
> Older apps may still `import { AurionSignal }` — it is the same object as `Attribra` (deprecated alias).
|
|
48
|
-
|
|
49
47
|
## What the SDK does
|
|
50
48
|
|
|
51
49
|
1. Captures launch / warm deep links and short links (`/l/...`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attribra/react-native",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.10",
|
|
4
4
|
"description": "Attribra attribution and event SDK for React Native — deep links, install/reinstall, offline queue, SKAN, Appnext. Import { Attribra } from '@attribra/react-native'.",
|
|
5
5
|
"main": "src/index.ts",
|
|
6
6
|
"types": "src/index.ts",
|
package/src/AurionSignal.ts
CHANGED
|
@@ -154,7 +154,7 @@ const STORE_PENDING_URL = 'asg_pending_attribution_url'
|
|
|
154
154
|
const STORE_ATTRIBUTION_AT = 'asg_attribution_at'
|
|
155
155
|
const STORE_LOCATION = 'asg_location'
|
|
156
156
|
const STORE_EVENT_QUEUE = 'asg_event_queue'
|
|
157
|
-
const SDK_VERSION = '2.9.
|
|
157
|
+
const SDK_VERSION = '2.9.10'
|
|
158
158
|
let cachedGaid: string | null = null
|
|
159
159
|
const DEFAULT_DEEP_LINK_GRACE_MS = 3000
|
|
160
160
|
const DEFAULT_ATTRIBUTION_WINDOW_DAYS = 30
|