From 6baa02552a48e35e5b80c0152d49dbb2899a3fba Mon Sep 17 00:00:00 2001 From: ami-aman <91549653+ami-aman@users.noreply.github.com> Date: Wed, 11 Sep 2024 16:53:19 +0530 Subject: [PATCH] only change in apps --- Apps/APN/src/services/CustomerIOService.js | 4 ++-- Apps/FCM/src/services/CustomerIOService.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Apps/APN/src/services/CustomerIOService.js b/Apps/APN/src/services/CustomerIOService.js index 888dfc0b..1d738ae2 100644 --- a/Apps/APN/src/services/CustomerIOService.js +++ b/Apps/APN/src/services/CustomerIOService.js @@ -4,15 +4,15 @@ export const initializeCustomerIoSDK = (sdkConfig) => { const config = { cdpApiKey: Env.cdpApiKey, // Mandatory migrationSiteId: Env.siteId, // For migration - trackApplicationLifecycleEvents: true, // TODO: Update this to a configurable property based on settings + trackApplicationLifecycleEvents: sdkConfig.trackAppLifecycleEvents, inApp: { siteId: 'site_id', } }; + if (sdkConfig.debugMode) { config.logLevel = CioLogLevel.Debug; } - CustomerIO.initialize(config) }; diff --git a/Apps/FCM/src/services/CustomerIOService.ts b/Apps/FCM/src/services/CustomerIOService.ts index c870ea08..a8ce7f0c 100644 --- a/Apps/FCM/src/services/CustomerIOService.ts +++ b/Apps/FCM/src/services/CustomerIOService.ts @@ -10,7 +10,7 @@ export const initializeCustomerIoSDK = (sdkConfig: CustomerIoSDKConfig) => { const config = { cdpApiKey: Env.cdpApiKey, // Mandatory migrationSiteId: Env.siteId, // For migration - trackApplicationLifecycleEvents: true, // TODO: Update this to a configurable property based on settings + trackApplicationLifecycleEvents: sdkConfig.trackAppLifecycleEvents, inApp: { siteId: 'site_id', },