SCNetworkReachability returns erroneous data when toggling airplane mode

Originator:therealcykey
Number:rdar://14585459 Date Originated:29-Jul-2013 11:02 PM
Status:Open Resolved:
Product:iOS SDK Product Version:6.1
Classification:Serious bug Reproducible:Always
 
29-Jul-2013 11:02 PM David M.:
Summary: The SCNetworkReachability callback function is called three (!) times when toggling airplane mode.

Steps to Reproduce:

1. Create an SCNetworkReachability object and set its callback correctly.
2. Toggle airplane mode.
3. Watch & log status updates.

Expected Results:

Only one status update: from REACHABLE to NOT REACHABLE.

Actual Results:

Three status updates: 
1. From REACHABLE to NOT REACHABLE.
2. From NOT REACHABLE to REACHABLE
3. From REACHAble back to NOT REACHABLE again.

(This happens quite quickly.)

Regression:

iPhone 4 GSM on iOS 6.1 (10B144)

Notes:

Works correctly when toggling WiFi, 3G, LTE etc. but breaks with airplane mode. :(

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!