Commit 075430dc by Demid Merzlyakov

MoEngage: initialization / CCPA improvements.

parent 20521d84
......@@ -51,13 +51,15 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
// )
//MoEngage setup
var moEngageConfig = MOSDKConfig(appID: kMoEngageAppId)
moEngageConfig.appGroupID = "group.com.onelouder.oneweather.MoEngage"
#if DEBUG
MoEngage.enableSDKLogs(true)
MoEngage.sharedInstance().initializeDev(withAppID:kMoEngageAppId, withLaunchOptions: launchOptions)
MoEngage.sharedInstance().initializeTest(with: moEngageConfig, andLaunchOptions: launchOptions)
#else
MoEngage.sharedInstance().initializeProd(withAppID:kMoEngageAppId, withLaunchOptions: launchOptions)
MoEngage.sharedInstance().initializeLive(with: moEngageConfig, andLaunchOptions: launchOptions)
#endif
MoEngage.setAppGroupID("group.com.onelouder.oneweather.MoEngage")
return true
}
......
......@@ -142,6 +142,9 @@ class CCPAHelper {
Firebase.Analytics.setAnalyticsCollectionEnabled(canCollectData)
PSMLocation.sharedInstance().halted = !canCollectData
// MoEngage
MoEngage.sharedInstance().optOut(ofDataTracking: !canCollectData)
}
private func registerApp(reason: String) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment