maplibre-native icon indicating copy to clipboard operation
maplibre-native copied to clipboard

[iOS] Calls to MGLOfflineStorageDelegate.offlineStorage block the main thread

Open PeterKaminski09 opened this issue 3 years ago • 0 comments

I am noticing that calls to the MGLOfflineStorageDelegate in the iOS SDK are invoked on the main thread. See https://github.com/aws-samples/amazon-location-samples/issues/31

Screen Shot 2021-05-24 at 8 52 07 AM

According to the documentation, instance methods of MGLOfflineStorage are asynchronous, so it seems like this is a bug with the underlying SDK.

MGLOfflineStorageDelegate.offlineStorage is used to intercept and modify the request, and this would ideally be happening on a different thread for processing.

PeterKaminski09 avatar May 24 '21 16:05 PeterKaminski09