You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using v0.10.0 or v0.10.1, if you try to reverse geocode in airplane mode, the completion handler is never called. This can be replicated using the following code:
MBGeocoder *geocoder = [[MBGeocoder alloc] initWithAccessToken:<token>];
MBReverseGeocodeOptions *options = [[MBReverseGeocodeOptions alloc] initWithCoordinate:anyCoordinate];
[geocoder geocodeWithOptions:options completionHandler:^(NSArray<MBGeocodedPlacemark *> * _Nullable placemarks, NSString * _Nullable attribution, NSError * _Nullable error) {
// never hit with an error
}];
I can reproduce this issue with any scenario that would result in a dataless response. By comparison, the analogous MapboxDirections.swift code is more robust, because the Directions API has a few such known edge cases: mapbox/mapbox-directions-swift#314.
Using v0.10.0 or v0.10.1, if you try to reverse geocode in airplane mode, the completion handler is never called. This can be replicated using the following code:
This line
MapboxGeocoder.swift/MapboxGeocoder/MBGeocoder.swift
Line 271 in 4365b4c
It returns immediately but the
error
object containing information about the network issue is ignored. Reproduced on iOS 12.0 and 12.1.The text was updated successfully, but these errors were encountered: