Commit 89286564 by Dmitry Stepanets

Merge branch 'feature/IOS-290-moengage-os' into develop

parents 87646ff1 286fac0f
...@@ -50,6 +50,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { ...@@ -50,6 +50,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
settings.appDelegate = self settings.appDelegate = self
settings.delegate.add(delegate: self) settings.delegate.add(delegate: self)
//Set platform for analytics
analytics(set: .userPlatform, to: "iOS")
ThemeManager.refreshAppearance() ThemeManager.refreshAppearance()
UserDefaults.migrateUserDefaultsToAppGroupsIfNeeded() UserDefaults.migrateUserDefaultsToAppGroupsIfNeeded()
......
...@@ -12,6 +12,8 @@ public enum AnalyticsAttribute { ...@@ -12,6 +12,8 @@ public enum AnalyticsAttribute {
case lastSeenCity case lastSeenCity
case fipsList case fipsList
case lastSeenFipsCodeNonTracfone case lastSeenFipsCodeNonTracfone
/// iOS/Android
case userPlatform
/// True/False; Wether the splash screen has been shown to the user for the first time or not. /// True/False; Wether the splash screen has been shown to the user for the first time or not.
case splashFTUE case splashFTUE
case att case att
...@@ -29,6 +31,8 @@ public enum AnalyticsAttribute { ...@@ -29,6 +31,8 @@ public enum AnalyticsAttribute {
return "SPLASH_FTUE" return "SPLASH_FTUE"
case .att: case .att:
return "ATT" return "ATT"
case .userPlatform:
return "USER_PLATFORM"
} }
} }
} }
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