cap-hydra-web-sdk 1.0.9 → 1.1.0-beta.20260619085241

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 CHANGED
@@ -123,7 +123,6 @@ class SDKService {
123
123
  remoteConfigKey: 'your_app_config_key',
124
124
  appVersion: '1.0.0',
125
125
  notifications: {
126
- enableNotifications: true,
127
126
  vapidKey: 'YOUR_VAPID_KEY',
128
127
  },
129
128
  });
@@ -199,18 +198,20 @@ SDK configuration values like `accountId`, `baseURL`, `debugLevel`, etc. are aut
199
198
 
200
199
  The following fields are fetched from Firebase Remote Config. **Do not set them manually.**
201
200
 
202
- | Field | Required | Default | Description |
203
- | ----------------------- | -------- | --------- | ------------------------------------------------------------ |
204
- | `accountId` | Yes | — | Organization account identifier |
205
- | `baseURL` | Yes | — | API base URL for all SDK requests |
206
- | `orgId` | Yes | — | Organization ID for API authentication |
207
- | `brandId` | No | — | Brand identifier for namespaced database names |
208
- | `applicationId` | No | — | Application identifier for namespaced database names |
209
- | `source` | No | `WEBPUSH` | Source identifier for visitor profiles |
210
- | `channelType` | No | `web` | Communication channel type |
211
- | `sessionTimeoutMinutes` | No | `30` | Session inactivity timeout in minutes |
212
- | `batchSize` | No | `50` | Max events per batch request |
213
- | `debugLevel` | No | `NONE` | Logging level (`NONE` / `ERROR` / `WARN` / `INFO` / `DEBUG`) |
201
+ | Field | Required | Default | Description |
202
+ | ----------------------- | -------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
203
+ | `accountId` | Yes | — | Organization account identifier |
204
+ | `baseURL` | Yes | — | API base URL for all SDK requests |
205
+ | `orgId` | Yes | — | Organization ID for API authentication |
206
+ | `brandId` | No | — | Brand identifier for namespaced database names |
207
+ | `applicationId` | No | — | Application identifier for namespaced database names |
208
+ | `source` | No | `WEBPUSH` | Source identifier for visitor profiles |
209
+ | `channelType` | No | `web` | Communication channel type |
210
+ | `sessionTimeoutMinutes` | No | `30` | Session inactivity timeout in minutes |
211
+ | `batchSize` | No | `50` | Max events per batch request |
212
+ | `debugLevel` | No | `NONE` | Logging level (`NONE` / `ERROR` / `WARN` / `INFO` / `DEBUG`) |
213
+ | `gamificationWriteKey` | No | — | CustomerGlu write key; when present, gamification auto-initializes on user signin |
214
+ | `gamificationRegion` | No | — | CustomerGlu region code (e.g. `'us'`, `'me'`). Absent = default region (`api.customerglu.com`). Derives both the API base URL and stream URL automatically. |
214
215
 
215
216
  **Example Remote Config JSON** (stored as the value of your `remoteConfigKey` in Firebase Console):
216
217
 
@@ -225,10 +226,14 @@ The following fields are fetched from Firebase Remote Config. **Do not set them
225
226
  "channelType": "web",
226
227
  "sessionTimeoutMinutes": 30,
227
228
  "batchSize": 50,
228
- "debugLevel": "NONE"
229
+ "debugLevel": "NONE",
230
+ "gamificationWriteKey": "wk_live_xxxxxxxxxx",
231
+ "gamificationRegion": "us"
229
232
  }
230
233
  ```
231
234
 
235
+ > **Gamification is opt-in.** If `gamificationWriteKey` is absent from Remote Config, the gamification module is silently skipped. When present, campaigns and entry points are fetched automatically after `identify()` and rendered by the SDK — no host-app UI work required. `gamificationRegion` is optional; omit it to use the default CustomerGlu region. See [DEVELOPER_GUIDE.md §14](DEVELOPER_GUIDE.md#14-gamification-customerglu) for details.
236
+
232
237
  ---
233
238
 
234
239
  ## Public API Reference
@@ -436,7 +441,6 @@ WebSDK.initialize({
436
441
  },
437
442
  remoteConfigKey: 'your_app_config_key',
438
443
  notifications: {
439
- enableNotifications: true,
440
444
  vapidKey: 'YOUR_VAPID_KEY',
441
445
  serviceWorkerPath: '/firebase-messaging-sw.js',
442
446
  },