From 52757778c0a6f0ee4927077a853a6908314189b9 Mon Sep 17 00:00:00 2001 From: Kirill Zhdanovich Date: Sat, 18 May 2013 02:29:01 +0300 Subject: [PATCH] [iOS] Flurry Fix. According to documentation start flurry in didFinishLaunching method --- iphone/Maps/Classes/MapViewController.mm | 2 -- iphone/Maps/Classes/MapsAppDelegate.mm | 1 + 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/iphone/Maps/Classes/MapViewController.mm b/iphone/Maps/Classes/MapViewController.mm index 6c7e39ff48..c862582fd6 100644 --- a/iphone/Maps/Classes/MapViewController.mm +++ b/iphone/Maps/Classes/MapViewController.mm @@ -684,8 +684,6 @@ NSInteger compareAddress(id l, id r, void * context) - (void) OnEnterForeground { - [[Statistics instance] startSession]; - // Notify about entering foreground (should be called on the first launch too). GetFramework().EnterForeground(); diff --git a/iphone/Maps/Classes/MapsAppDelegate.mm b/iphone/Maps/Classes/MapsAppDelegate.mm index a5f564c9fa..c5392b22a3 100644 --- a/iphone/Maps/Classes/MapsAppDelegate.mm +++ b/iphone/Maps/Classes/MapsAppDelegate.mm @@ -145,6 +145,7 @@ void InitLocalizedStrings() - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSLog(@"application didFinishLaunchingWithOptions"); + [[Statistics instance] startSession]; InitLocalizedStrings();