From f96046103f3800b95e80753f4b63435d4946fcd0 Mon Sep 17 00:00:00 2001 From: Brad Leege Date: Fri, 24 Apr 2015 16:09:50 -0500 Subject: [PATCH] #1225 - Starting Mapbox Events at shared instance setup time --- platform/ios/MapboxGL.m | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform/ios/MapboxGL.m b/platform/ios/MapboxGL.m index 0c8812821..7c542cb36 100644 --- a/platform/ios/MapboxGL.m +++ b/platform/ios/MapboxGL.m @@ -2,6 +2,7 @@ #import "MapboxGL.h" #import "NSProcessInfo+MGLAdditions.h" +#import "MGLMapboxEvents.h" @interface MapboxGL() @@ -24,6 +25,7 @@ static MapboxGL *_sharedManager; void (^setupBlock)() = ^{ _sharedManager = [[self alloc] init]; _sharedManager.accessToken = token; + [MGLMapboxEvents setToken:token]; }; if ( ! [[NSThread currentThread] isMainThread]) { dispatch_sync(dispatch_get_main_queue(), ^{