forked from organicmaps/organicmaps
[ios] Added Alohalytics installation id to Fabric.
This commit is contained in:
parent
52814475b5
commit
383d4b6726
1 changed files with 11 additions and 0 deletions
|
@ -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];
|
||||
|
|
Loading…
Add table
Reference in a new issue