[ios] Added Alohalytics installation id to Fabric.

This commit is contained in:
Ilya Grechuhin 2016-04-21 18:39:30 +03:00
parent 52814475b5
commit 383d4b6726

View file

@ -123,6 +123,13 @@ void InitCrashTrackers()
#endif
}
void ConfigCrashTrackers()
{
#ifdef OMIM_PRODUCTION
[[Crashlytics sharedInstance] setObjectValue:[Alohalytics installationId] forKey:@"AlohalyticsInstallationId"];
#endif
}
using namespace osm_auth_ios;
@interface MapsAppDelegate () <MWMFrameworkStorageObserver>
@ -382,6 +389,10 @@ using namespace osm_auth_ios;
return returnValue;
}
// We send Alohalytics installation id to Fabric.
// To make sure id is created, ConfigCrashTrackers must be called after Statistics initialization.
ConfigCrashTrackers();
NSURL * urlUsedToLaunchMaps = launchOptions[UIApplicationLaunchOptionsURLKey];
if (urlUsedToLaunchMaps != nil)
returnValue |= [self checkLaunchURL:urlUsedToLaunchMaps];