mapkit-ios-demo
mapkit-ios-demo copied to clipboard
Impossible to call YMKMapKit.setApiKey from background thread
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?