Commit 964afb6b by Demid Merzlyakov

IOS-290: USER_PLATFORM is set after MoEngage init.

parent 69141f6d
...@@ -51,7 +51,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -51,7 +51,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
settings.appDelegate = self settings.appDelegate = self
settings.delegate.add(delegate: self) settings.delegate.add(delegate: self)
//Set platform for analytics //Set platform for analytics
analytics(set: .userPlatform, to: "iOS")
ThemeManager.refreshAppearance() ThemeManager.refreshAppearance()
UserDefaults.migrateUserDefaultsToAppGroupsIfNeeded() UserDefaults.migrateUserDefaultsToAppGroupsIfNeeded()
...@@ -131,6 +130,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -131,6 +130,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
log.info("Initialize MoEngage (LIVE)") log.info("Initialize MoEngage (LIVE)")
MoEngage.sharedInstance().initializeLive(with: moEngageConfig, andLaunchOptions: launchOptions) MoEngage.sharedInstance().initializeLive(with: moEngageConfig, andLaunchOptions: launchOptions)
#endif #endif
analytics(set: .userPlatform, to: "iOS")
if let widgetPromotionTriggerCount = settings.widgetPromotionTriggerCount { if let widgetPromotionTriggerCount = settings.widgetPromotionTriggerCount {
if widgetPromotionTriggerCount >= 0 { if widgetPromotionTriggerCount >= 0 {
......
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