Skip to content

Commit

Permalink
Merge branch 'feature/cdp-app-lifecycle' into feature/cdp-milestone-d…
Browse files Browse the repository at this point in the history
…evice-registration
  • Loading branch information
ami-aman committed Sep 18, 2024
2 parents 162980a + 6e5ced9 commit 6f2032f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Apps/APN/src/services/CustomerIOService.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ 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,
autoTrackDeviceAttributes: sdkConfig.autoTrackDeviceAttributes,
inApp: {
siteId: 'site_id',
}
};

if (sdkConfig.debugMode) {
config.logLevel = CioLogLevel.Debug;
}

CustomerIO.initialize(config)
};

Expand Down
2 changes: 1 addition & 1 deletion Apps/FCM/src/services/CustomerIOService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
autoTrackDeviceAttributes: sdkConfig.trackDeviceAttributes,
inApp: {
siteId: 'site_id',
Expand Down

0 comments on commit 6f2032f

Please sign in to comment.