[ios] Run MGLMapboxEvents setup asynchronously (#11784)
* [ios] Run MGLMapboxEvents setup asynchronously
This commit is contained in:
@@ -64,7 +64,9 @@
|
||||
[MGLAccountManager sharedManager].accessToken = accessToken;
|
||||
|
||||
#if TARGET_OS_IPHONE || TARGET_OS_SIMULATOR
|
||||
[MGLMapboxEvents setupWithAccessToken:accessToken];
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[MGLMapboxEvents setupWithAccessToken:accessToken];
|
||||
});
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -16,6 +16,7 @@ Mapbox welcomes participation and contributions from everyone. Please read [CONT
|
||||
|
||||
* Unknown tokens in URLs are now preserved, rather than replaced with an empty string. ([#11787](https://github.com/mapbox/mapbox-gl-native/issues/11787))
|
||||
* Adjusted when and how the camera transition update and finish callbacks are called, fixing recursion bugs. ([#11614](https://github.com/mapbox/mapbox-gl-native/pull/11614))
|
||||
* Improved application launch performance.
|
||||
|
||||
## 4.0.1 - May 14, 2018
|
||||
|
||||
|
||||
Reference in New Issue
Block a user