Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS WiFi network switching

My company is developing an iPhone accessory that requires a relatively high connectivity rate to the phone. Due to MFi limitations (USB 2 communications in HOST mode fair only around 100KBps), we're looking at hosting a WiFi ad-hoc network on our accessory, and connecting to that network with the iPhone's WiFi.

This could really work out great in many regards, except we can't seem to find an (Apple-approved) way to programmatically switch the iPhone's WiFi connectivity. Ideally the app would automatically connect to the accessory's network when visible, and then re-connect to the user's preferred network when not visible/needed.

We are aware of the MobileWiFi framework, which fits the technical bill, but won't pass Apple's approval process.

Can anybody suggest a way to achieve our goal? Perhaps there is a system model view that can be called up to allow the user to switch WiFi networks without directly using private APIs?

Creative solutions welcome!

like image 768
mdavis Avatar asked Aug 08 '11 22:08

mdavis


People also ask

Why does my iPhone keep switching Wi-Fi networks?

Go to Settings > General > Reset and Reset Network Settings to clear them all and then join the one you want... This is probably happening because you have two closely Wi-Fi networks that are of almost equal strength and sometime in the past you have connected to both.

How do I stop my wireless Network from switching?

Open the Android settings and go to Network & Internet. Select Wi-Fi > Wi-Fi preferences. Turn off the Connect to public networks toggle switch.


1 Answers

Hate to say it, there's really no way to do it. I can think of two easy workarounds.

1. Make it available on Cydia for jailbroken devices. AirServer just did this.

2. Less elegant, have UIAlertView with a switch over to the wifi pane of the Settings app that is shown when the peripheral is connected and disconnected. A lot like the location settings prompt.

3. Make an Android app!

Apple, you're a pain in the ass.

like image 106
Peter Kazazes Avatar answered Sep 21 '22 03:09

Peter Kazazes