@sagepilot-ai/react-native-push-addon 0.4.0 → 0.4.1
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/README.md +6 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Optional Android/iOS package. Base SDK **0.4.0+** supplies identity/session, installation registration, preferences and authenticated HTTP transport. This add-on owns **analytics capture, native storage, replay, retry and upload**. It has no second customer-token store. Chat-only apps do not install it; older base SDK integrations remain compatible.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
This push add-on release is **0.4.1**, matching the base SDK and camera add-on:
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
npm install @sagepilot-ai/react-native-sdk@0.4.
|
|
8
|
+
npm install @sagepilot-ai/react-native-sdk@0.4.1 @sagepilot-ai/react-native-push-addon@0.4.1
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Integration host: RN 0.81.5, React 19.1, Expo 54, RNFirebase 26.4. Native minimums: Android 24, iOS 15.1. Other peer-compatible versions are not tested. Expo Go cannot load this module.
|
|
@@ -73,6 +73,10 @@ Static JPEG/PNG: public HTTPS, no URL credentials/redirects, <=5 MiB, <=16 megap
|
|
|
73
73
|
|
|
74
74
|
## Analytics
|
|
75
75
|
|
|
76
|
+
**Firebase/provider rendering supports Sagepilot push analytics.** Connect Firebase through `createFirebasePushAdapter(...)`, wrap it with `createSagepilotNativePushAdapter(..., { displayMode: 'provider', onError })`, and configure the Firebase callbacks and native forwarding above. Firebase/OS displays background alerts while the add-on captures and uploads available `received` and `opened` events for Sagepilot-sent notifications. Forward `onMessage`, `onNotificationOpenedApp`, `getInitialNotification` and background/native callbacks; token registration alone does not report engagement.
|
|
77
|
+
|
|
78
|
+
Recorded opens feed journey/campaign open rates, unique customer/device counts and time to open. Presentation and dismissal metrics depend on observable native callbacks; destination success/failure requires the explicit `push.track(...)` calls below. Keep Sagepilot tracking data intact. Arbitrary Firebase messages without it do not populate Sagepilot reports, and Firebase console analytics are not imported. Provider acceptance is recorded server-side and does not prove receipt or reading.
|
|
79
|
+
|
|
76
80
|
App-private native storage holds **200 observations for seven days**, stable IDs and capture-time SDK version compiled from the installed base package. Rebuild native targets when changing the base SDK version; retained events keep their original version. At capacity it retains existing events, increments a local overflow counter and returns false for new captures; notification display continues. Expiry/overflow means incomplete analytics. No session credential is stored here. Server canonical deduplication supplements bounded local deduplication.
|
|
77
81
|
|
|
78
82
|
The add-on uploads through the shared transport immediately/on callbacks and every 30 seconds while JS runs. Network/service/auth failures retain events; server acceptance or terminal payload errors acknowledge them. Killed-process observations upload on next JS startup. There is no second auth flow or native networking worker. Old base SDK outbox entries retain their legacy drain for upgrade compatibility; all new add-on events live here.
|
package/dist/index.js
CHANGED
package/dist/index.mjs
CHANGED