Calling CLLocationManager.locationServicesEnabled method generates a log message with the following console warning:
"/Users/distiller/project/Sources/MapboxMobileEvents/MMEEventsManager.m:356: warning run: This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first."
In this PR we just move the turnstile event construction to queue which already used to post events.
Calling CLLocationManager.locationServicesEnabled method generates a log message with the following console warning:
"/Users/distiller/project/Sources/MapboxMobileEvents/MMEEventsManager.m:356: warning run: This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the
-locationManagerDidChangeAuthorization:
callback and checkingauthorizationStatus
first."In this PR we just move the turnstile event construction to queue which already used to post events.