iOS 5 No Automatic WiFi connects with App running and Foreground and "notif

Originator:jojo.rudolph
Number:rdar://10827088 Date Originated:08-02-2012
Status:Open Resolved:
Product:iOS Devices Product Version:5.0.1
Classification:Serious Bug Reproducible:Always
 
08-Feb-2012 03:25 PM Johannes Rudolph:
Summary:
Device running iOS 5 (issue verified on iPad2 Wifi+3g and iPhone 4) won't automatically connect to a known, WPA2 encrypted WiFi while an App is running in the foreground and Settings-Wifi->"Ask to Join Networks" is enabled". Devices will automatically connect when "Ask to Join Networks" is disabled.

Steps to Reproduce:
0. Go to settings, WiFi and ensure "Ask to Join Networks is enabled"
1. Connect the device to a WPA2-AES encrypted WiFi to ensure the device "knows" the WiFi.
2. Move out of WiFi reach and wait for the network status indicator to refresh accordingly
3. Launch any App, e.g Safari and observe the network status indicator still reporting 3G/Edge
4. Move back into reach of the known WiFi.

Expected Results:
The device should automatically join the known WiFi.

Actual Results:
The device does not join the WiFi until the App running in the foreground is terminated. It then takes approx. 3 seconds to connect to the WiFi.

Regression:
I could not observe the same behavior on an iPhone 3G running iOS 4.3.2, the iPhone3G connected just fine regardless of "Ask to join Networks" setting. 

Notes:
I have tried running an App in the foreground that has UIRequiresPersistentWiFi enabled but could not observe any change in behavior. 

This is a serious bug!

My App depends on automatic connection to a WiFi whenever a known WiFi comes into reach and now I would have to educate my Users to correctly configure their device. The "Ask to Join Network" should have no influence whatsoever on the behavior observed when joining a _known_ WiFi, the only thing it should do is bring up a dialog when only _unknown_ WiFis are available.

All WiFis I tested with had SSID Broadcast enabled and had a fully functional DHCP (in case this is important).

Previous to filing this bug I have consulted DTS with follow up id 190674176 and it was recommended I'd file a bug.

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!