SCNetworkReachability Callback not called when launching in airplane mode on iOS 9 (regression)
Originator: | max.goedjen | ||
Number: | rdar://21581686 | Date Originated: | 6/27/2015 |
Status: | Open | Resolved: | |
Product: | iOS SDK | Product Version: | iOS 9 Beta 2 (13A4280e) |
Classification: | Other Bug | Reproducible: | Always |
Summary: After registering a callback with SCNetworkReachabilitySetCallback with a reachability created with a domain , starting with iOS 9, it will not be called on initial launch if launched in airplane mode. Launching with a network connection behaves as expected Steps to Reproduce: Register with SCNetworkReachabilitySetCallback in code Launch device in airplane mode Expected Results: Callback would be called with offline flags, as it is in iOS versions prior to 9.0 Actual Results: Callback not called initially Version: iOS 9 Beta 2 (13A4280e) Notes: Sample project: https://github.com/maxgoedjen/OfflineLaunchCallback Configuration: iPhone 6 Verizon
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!
had same issue on OSX 10.13, xcode 10.1 apparently i was scheduling the callback not on main thread and the callback had no thread to return to. fixed by dispatching to the main queue
also not called on network change in the background
for me it also doesn't seem to get called for a VOIP app in the background where the network changes. no callback even though on iOS8 is did work.