Skip to content

Commit 6e5ced9

Browse files
authored
chore: sample app fixes for application lifecycle track events (#320)
1 parent 1b29f29 commit 6e5ced9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Apps/APN/src/services/CustomerIOService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ export const initializeCustomerIoSDK = (sdkConfig) => {
44
const config = {
55
cdpApiKey: Env.cdpApiKey, // Mandatory
66
migrationSiteId: Env.siteId, // For migration
7-
trackApplicationLifecycleEvents: true, // TODO: Update this to a configurable property based on settings
7+
trackApplicationLifecycleEvents: sdkConfig.trackAppLifecycleEvents,
88
inApp: {
99
siteId: 'site_id',
1010
}
1111
};
12+
1213
if (sdkConfig.debugMode) {
1314
config.logLevel = CioLogLevel.Debug;
1415
}
15-
1616
CustomerIO.initialize(config)
1717
};
1818

Apps/FCM/src/services/CustomerIOService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const initializeCustomerIoSDK = (sdkConfig: CustomerIoSDKConfig) => {
1010
const config = {
1111
cdpApiKey: Env.cdpApiKey, // Mandatory
1212
migrationSiteId: Env.siteId, // For migration
13-
trackApplicationLifecycleEvents: true, // TODO: Update this to a configurable property based on settings
13+
trackApplicationLifecycleEvents: sdkConfig.trackAppLifecycleEvents,
1414
inApp: {
1515
siteId: 'site_id',
1616
},

0 commit comments

Comments
 (0)