@rivium/push-web 0.1.1 → 0.1.3
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/dist/index.d.ts +15 -0
- package/dist/index.esm.js +1 -1
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +1 -1
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -190,6 +190,14 @@ export interface RiviumPushConfig {
|
|
|
190
190
|
maxReconnectAttempts?: number;
|
|
191
191
|
/** Initial log level (default: DEBUG in dev, ERROR in prod) */
|
|
192
192
|
logLevel?: RiviumPushLogLevel;
|
|
193
|
+
/**
|
|
194
|
+
* Your web app version (e.g. "2.0.0"). Sent to the backend on every
|
|
195
|
+
* register() and surfaced as a first-class segment filter in the
|
|
196
|
+
* dashboard so you can target specific releases. Web has no equivalent
|
|
197
|
+
* of iOS CFBundleShortVersionString / Android versionName — you set
|
|
198
|
+
* this at init time from your build config.
|
|
199
|
+
*/
|
|
200
|
+
appVersion?: string;
|
|
193
201
|
}
|
|
194
202
|
/**
|
|
195
203
|
* Notification action button
|
|
@@ -536,6 +544,13 @@ declare class RiviumPush {
|
|
|
536
544
|
private registerServiceWorker;
|
|
537
545
|
private requestNotificationPermission;
|
|
538
546
|
private subscribeToPush;
|
|
547
|
+
/**
|
|
548
|
+
* Read platform-native device attributes. Sent on every register() so
|
|
549
|
+
* the dashboard can segment by app version, OS, locale, timezone, etc.
|
|
550
|
+
* without customers having to populate metadata manually. All fields
|
|
551
|
+
* best-effort — SSR / older browser combos may leave some undefined.
|
|
552
|
+
*/
|
|
553
|
+
private captureDeviceAttributes;
|
|
539
554
|
private registerDevice;
|
|
540
555
|
private connectToGateway;
|
|
541
556
|
/**
|