mapkit-ios-demo icon indicating copy to clipboard operation
mapkit-ios-demo copied to clipboard

Impossible to call YMKMapKit.setApiKey from background thread

Open west0r opened this issue 5 years ago • 0 comments

Initialisation of YandesMapKit takes 100ms on iPhone 7. It's huge.

I want to unload the main thread and move this call to background. But I get a error - Failed to set YandexMap api key with error: Invoked not in UI thread

Why it needs the main thread? I think that not all logic of setApiKey requires execution on the main thread. Maybe several calls lasting 1-10ms but not 100ms.

Do you have any plans to fix it and add ability to initialise this huge part of logic outside the main thread?

west0r avatar Dec 19 '19 10:12 west0r