Commit 286fac0f by Dmitry Stepanets

[IOS-290]: Added USER_PLATFORM attribute to analytics

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