maplibre-native
maplibre-native copied to clipboard
[iOS] Calls to MGLOfflineStorageDelegate.offlineStorage block the main thread
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
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.