diff options
-rw-r--r-- | platform/ios/src/MGLMapboxEvents.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/ios/src/MGLMapboxEvents.m b/platform/ios/src/MGLMapboxEvents.m index edf1dffa40..cc7390ac61 100644 --- a/platform/ios/src/MGLMapboxEvents.m +++ b/platform/ios/src/MGLMapboxEvents.m @@ -45,7 +45,7 @@ static NSString * const MGLVariableGeofence = @"VariableGeofence"; - (instancetype)init { self = [super init]; if (self) { - _eventsManager = [[MMEEventsManager alloc] init]; + _eventsManager = MMEEventsManager.sharedManager; _eventsManager.debugLoggingEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:MGLMapboxMetricsDebugLoggingEnabled]; _eventsManager.accountType = [[NSUserDefaults standardUserDefaults] integerForKey:MGLMapboxAccountType]; _eventsManager.metricsEnabled = [[NSUserDefaults standardUserDefaults] boolForKey:MGLMapboxMetricsEnabled]; |