Post

Replies

Boosts

Views

Activity

Reply to NEHotspotConfigurationManager apply(_:completionHandler:)
JoinOnce does not work properly. In iPad 9 + iPadOS 16.1.1, turning our app to Sleep with JoinOnce = false does not disconnect the Wi-Fi. But on the iPad mini 6 + iPadOS 16.1.1, setting JoinOnce = false and turning our app to Sleep would disconnect the Wi-Fi. Maybe I'm using the NEHotspot Configuration Manager incorrectly? Well folks, is my code correct? We develop with Xamarin. inline-code //---------------------------------------------------------------------- // Interface(IWifiConnector) //---------------------------------------------------------------------- /// <summary> /// Request a connection. /// </summary> /// <param name="ssid">SSID</param> /// <param name="securityKey">Security key</param> /// <param name="notifyResultAction">Connection result notification action (Request result, connection in progress)</param> public void RequestConnect( string ssid, string securityKey, Action<UsCommResult, bool> notifyResultAction) { // If you are already connected to the specified SSID, notify the connection result and exit string currentSsid = GetCurrentSsid(); if ((currentSsid != null) && (currentSsid == ssid)) { // WiFi connection complete notifyResultAction(UsCommResult.Ok, false); return; } // To use NEHotspotConfiguration Manager and NEHotspotConfiguration, enable "Hotspot" in the provisioning profile and "Entitlements.plist" var wifiManager = new NEHotspotConfigurationManager(); var wifiConfig = new NEHotspotConfiguration(ssid, securityKey, false/*isWEP*/); wifiConfig.JoinOnce = false; wifiConfig.LifeTimeInDays = 1; wifiManager.ApplyConfiguration(wifiConfig, (error) => { if (error != null) { // WiFi connection error // ( Even when connected, the message is stored in error, so check connected before execution.) notifyResultAction(UsCommResult.WifiConnectionFailure, false); } else { UsDeviceModel.GetInstance().IsAutoFreezeOFF = true; // Start WiFi connection notifyResultAction(UsCommResult.Ok, true); } }); } /// <summary> /// Get the SSID of the current connection. /// </summary> /// <returns>SSID(Unconnected:null)</returns> public string GetCurrentSsid() { // To use CaptiveNetwork, enable the provisioning profile and "Access WiFi Information" in "Entitlements.plist" string[] interfaces; CaptiveNetwork.TryGetSupportedInterfaces(out interfaces); if ((interfaces == null) || (interfaces.Length <= 0)) { return null; } try { NSDictionary networkInfo; CaptiveNetwork.TryCopyCurrentNetworkInfo(interfaces[0], out networkInfo); if (networkInfo == null) { return null; } string ssid = networkInfo[CaptiveNetwork.NetworkInfoKeySSID].ToString(); return ssid; } catch (Exception ex) { return null; } }
Dec ’22
Reply to NEHotspotConfigurationManager apply(_:completionHandler:)
Okay, this is good to know. If you do end up opening a bug report, please add this there. I also put it on feedback Assistant, but our poor English doesn't seem to understand it. Unfortunately, I've tried changing the title, changing the expression, and getting creative, but there's no answer, and a year is about to pass. If I understand you correctly, an API level dis-association can be performed using the API for removeConfiguration. If you use removeConfiguration., the settings you changed to manual connection will revert to automatic connection. Then it connects again and disconnects after 15 seconds.
Nov ’22
Reply to NEHotspotConfigurationManager apply(_:completionHandler:)
We have not been able to confirm whether the event occurred outside of our equipment. partly because there is no Wi-Fi (IEEE 802.11 n: 2.4 GHz). When the same app was connected to a device using 5GHz, there were reports it wasn't happening. iPad (iPad 8, iPad 9, iPadmini 5, iPadmini 6, iPadAir 3, iPadAir 4) with iPadOS 15 installed is causing the issue. Does not occur in iPadOS 14. Does not occur when connecting with a static IP. Happens on the first connection of the day. With these three, if you can show us the case in which disconnection is performed, we can consider it.
Nov ’22
Reply to NEHotspotConfigurationManager apply(_:completionHandler:)
Thank you for your reply. The event occurs when you have a Wi-Fi connection with the equipment we developed. This device connects to iPad via Wi-Fi (IEEE 802.11 n: 2.4 GHz). Up until iPadOS 14, everything was fine. It didn't happen until iPadOS 15. I have no idea why. Our device only connects to one iPad. I'm using DPMS. The IP address is always the same. Passwords aren't complicated. Could that be the cause?
Nov ’22
Reply to NEHotspotConfigurationManager apply(_:completionHandler:)
When connecting with NEHotspotConfigurationManager apply (_: completionHandler:), joinOnce = false was set. lifeTimeInDays = 365. But things didn't change. The first connection that changes date drops in 15 seconds. I thought it was because I connected with the NEHotspot Configuration Manager apply from the app, but when I connected from Settings in iPadOS, it was disconnected. Has anyone had a similar problem that has been solved? Does anyone know of a change from iPasOS 14 to iPadOS 15 that might have caused this phenomenon?
Nov ’22
Reply to Is there anything that changes the Wi-Fi icon?
Dear eskimo, Thank you for the information. After all, there seems to be no choice but to solve the Wi-Fi outage. I'll tell existing users to switch to manual IPv4 as a quick fix. But how to fix it? With iOS 14, it wasn't happening. So I expected to hear the changes from Apple very soon. Once the details of the changes are known, they can consider how to deal with them. But Apple doesn't tell us anything. I'm sad. You seem to think the problem is caused by DHCP. I agree. At first, I thought it was an expiration date for the IP Address that our device distributes. It will expire in 24 hours. Moreover, our equipment is not running continuously for 24 hours. It always turns off halfway through. Therefore, IP Address distribution is reset. But I'm curious, because our device has a one-to-one connection to the iPad, the IP address is always the same. Could that be the cause? But less than 24 hours have passed. Whenever the date changes, the first connection is dropped. From the time the date changes until it is connected to our device, the iPad will disconnect when it is connected to our device, even if it is connected to another router. Is it because our equipment can't connect to the Internet? iPadOS 16 is coming soon. One year has almost passed since the event occurred.
Topic: App & System Services SubTopic: Core OS Tags:
Oct ’22
Reply to Wi-Fi connection (IEEE 802.11 n: 2.4 GHz) with an iPad.
Additional information about the problems we face. The occurrence procedure. (1) In the morning, turn on iPad and establish a Wi-Fi connection with the device. It will expire in about 15 seconds. (2)If you connect again, nothing happens. (3)If you restart iPad, nothing happens. (4)Turn off the power and leave it until the next morning. (5)In the morning, turn on your iPad and connect it to a 2.4 GHz router. Communication is not interrupted. (6)Connect to the device from the router connection. It will expire in about 15 seconds. When our device is connected to the iPad, it sends about 25 kbyte images 14 times per second.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’22