MapKit in MKMapTypeHybridFlyover mode doesn't call mapViewDidFailLoadingMap when offline

Originator:skyriser
Number:rdar://28036857 Date Originated:2016.08.26
Status:open Resolved:
Product:MapKit (Maps) Product Version:
Classification: Reproducible:
 
Summary:
See attached project.

Run project on device, make sure the device is offline (airplane mode).


Using map type MKMapTypeStandard (commented out) the app launched, then calls mapViewWillStartLoadingMap then calls mapViewDidFailLoadingMap with an error message, as expected.

But with map type MKMapTypeHybridFlyover, the app launched, then calls mapViewWillStartLoadingMap but instead of calling mapViewDidFailLoadingMap, it calls mapViewDidFinishLoadingMap with no errors, and also logs a few errors in Xcode:: 

2016-08-26 11:54:01.360 Antidote Mobile FR DEV[279:12613] Download failed: {x:0 y:0 z:0 (0.0.0 type: 14 pixel: 2 text: 0 expires: 0 r1: 0 r2: 050000 <unknown provider: 30>)} Error: Error Domain=GEOErrorDomain Code=-204 "(null)" UserInfo={SimpleTileRequesterUnderlyingErrors=(
    "Error Domain=NSURLErrorDomain Code=-1009 \"The Internet connection appears to be offline.\" UserInfo={NSUnderlyingError=0x12960a5f0 {Error Domain=kCFErrorDomainCFNetwork Code=-1009 \"The Internet connection appears to be offline.\" UserInfo={NSErrorFailingURLStringKey=http://gspe11.ls.apple.com/tile?style=14&v=1023&part=0&region=5&sid=0266416999455601832917460140005057344995&accessKey=1472231041_4zbmoODKY1rmxdKE_F8ALuy9AE83bh8i61HCNb%2FqYLs7upYBLMhpNRStcIGFKVqa5Iyflo8dgVr8sLxaXyAGuXdIu1cnNYqX3sAqgjbrxJj81512FXQn8%2FfNShg1DhJfsb%2BnXiL9RYrpDy4o%2B8RVNFC7xTVbDUqsJQpbgyA%3D%3D, NSErrorFailingURLKey=http://gspe11.ls.apple.com/tile?style=14&v=1023&part=0&region=5&sid=0266416999455601832917460140005057344995&accessKey=1472231041_4zbmoODKY1rmxdKE_F8ALuy9AE83bh8i61HCNb%2FqYLs7upYBLMhpNRStcIGFKVqa5Iyflo8dgVr8sLxaXyAGuXdIu1cnNYqX3sAqgjbrxJj81512FXQn8%2FfNShg1DhJfsb%2BnXiL9RYrpDy4o%2B8RVNFC7xTVbDUqsJQpbgyA%3D%3D, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12, NSLocalizedDescription=The Internet connection appears to be offline.}}, NSErrorFailingURLStringKey=http://gspe11.ls.apple.com/tile?style=14&v=1023&part=0&region=5&sid=0266416999455601832917460140005057344995&accessKey=1472231041_4zbmoODKY1rmxdKE_F8ALuy9AE83bh8i61HCNb%2FqYLs7upYBLMhpNRStcIGFKVqa5Iyflo8dgVr8sLxaXyAGuXdIu1cnNYqX3sAqgjbrxJj81512FXQn8%2FfNShg1DhJfsb%2BnXiL9RYrpDy4o%2B8RVNFC7xTVbDUqsJQpbgyA%3D%3D, NSErrorFailingURLKey=http://gspe11.ls.apple.com/tile?style=14&v=1023&part=0&region=5&sid=0266416999455601832917460140005057344995&accessKey=1472231041_4zbmoODKY1rmxdKE_F8ALuy9AE83bh8i61HCNb%2FqYLs7upYBLMhpNRStcIGFKVqa5Iyflo8dgVr8sLxaXyAGuXdIu1cnNYqX3sAqgjbrxJj81512FXQn8%2FfNShg1DhJfsb%2BnXiL9RYrpDy4o%2B8RVNFC7xTVbDUqsJQpbgyA%3D%3D, _kCFStreamErrorCodeKey=8, _kCFStreamErrorDomainKey=12, NSLocalizedDescription=The Internet connection appears to be offline.}"

Is this a bug or a known behavior?

Tried on iOS 9.3, with multiple devices.

Thanks!

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!