MXAnalyticsDelegate: Replace trackLaunchScreenDisplayDuration with new agnostic method

This commit is contained in:
manuroe
2020-11-05 09:44:18 +01:00
parent 1aa00e04c3
commit e653524b26
3 changed files with 3 additions and 19 deletions
+3 -1
View File
@@ -2418,7 +2418,9 @@ NSString *const AppDelegateUniversalLinkDidChangeNotification = @"AppDelegateUni
NSLog(@"[AppDelegate] hideLaunchAnimation: LaunchAnimation was shown for %.3fms", duration * 1000);
// Track it on our analytics
[[Analytics sharedInstance] trackLaunchScreenDisplayDuration:duration];
[[MXSDKOptions sharedInstance].analyticsDelegate trackDuration:duration
category:kMXAnalyticsStartupCategory
name:kMXAnalyticsStartupLaunchScreen];
// TODO: Send durationMs to Piwik
// Such information should be the same on all platforms