Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 10 - WLAN Access Setting Doesn't Appear In Some iOS Devices

Tags:

ios

ios10

Our app is using WLAN to communicate with a wireless device. When our app is installed in iOS 10. Sometimes, udp socket doesn't work. The reason for that is, in iOS 10 they added a new setting or permission under your app that allows the user to switch on or off the user of WLAN or cellular data.

The following would appear in the settings of the app:

enter image description here

When I tap on the Wireless... It will bring me to this UI:

enter image description here

After allowing WLAN use. The app would work fine.

Now, the problem is, sometimes, or in some devices running iOS 10, the settings that I just showed you doesn't appear(I am referring to the setting shown on the first image). So, is there anything I can do to make that settings always appear? It seems that sometimes iOS system doesn't recognize that my app is using wireless data. And it would result in my app would never get to use WLAN forever.

like image 303
JLT Avatar asked Nov 08 '22 05:11

JLT


1 Answers

There is no user permission to use WIFI in iOS10.

The application in your screenshot (BSW SMART KIT) is using Wireless Accessories (WAC), i.e. is able to connect to wireless speakers. To accomplish this the Wireless Accessory Configuration capability is required. This is what you can dis/enable in the systems settings (your screenshot).

The switch in the settings shows up after connecting to a device via WIFI through WAC. You can see this behaviour in your sample app (BSW SMART KIT) too.

This sample code might let you get the idea. Detailed information in Apples documentation.

like image 199
shallowThought Avatar answered Nov 14 '22 22:11

shallowThought