How to Confirm Wi-Fi Connection Success in App Clip Without Access Wi-Fi Information Entitlement?

My app helps users connect to Wi-Fi networks, and I have requested the Access Wi-Fi information entitlement. This allows the app to retrieve the current Wi-Fi information to ensure the user’s connection is successful.

Now, we are trying to implement an App Clip that enables users to connect to a specific Wi-Fi network through a QR code scan or NFC in certain scenarios. In the App Clip, I’ve requested the Hotspot entitlement, which allows the app to use the hotspot manager to configure Wi-Fi networks. However, since I cannot access the current Wi-Fi information in the App Clip, I’m unable to confirm whether the connection was successful.

Answered by DTS Engineer in 825818022

Apps Clips have a number of limitations. My go-to reference for those is Choosing the right functionality for your App Clip. This doesn’t cover this case directly, but I think it covers it indirectly.

Specifically, App Clips aren’t allowed to request continuous location access, and such access is required to get useful results from the fetchCurrent(completionHandler:) method.

Written by Jasper-Quinn in 825681022
However, in actual usage, regardless of whether the connection succeeds or fails, the Error is always nil

Right. This is a documented limitation of the apply(_:completionHandler:) method. It’s just unfortunate that this combining badly with the App Clip environment.

Honestly, I think you should file a bug about this. I’m not sure which subsystem to file it against, but your overall task — joining a Wi-Fi network from an App Clip — is perfectly reasonable.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

I am using this method to configure the Wi-Fi:

open func apply(_ configuration: NEHotspotConfiguration, completionHandler: (((any Error)?) -> Void)? = nil).

However, in actual usage, regardless of whether the connection succeeds or fails, the Error is always nil, which makes it impossible to determine whether the specified Wi-Fi has been successfully connected.

Apps Clips have a number of limitations. My go-to reference for those is Choosing the right functionality for your App Clip. This doesn’t cover this case directly, but I think it covers it indirectly.

Specifically, App Clips aren’t allowed to request continuous location access, and such access is required to get useful results from the fetchCurrent(completionHandler:) method.

Written by Jasper-Quinn in 825681022
However, in actual usage, regardless of whether the connection succeeds or fails, the Error is always nil

Right. This is a documented limitation of the apply(_:completionHandler:) method. It’s just unfortunate that this combining badly with the App Clip environment.

Honestly, I think you should file a bug about this. I’m not sure which subsystem to file it against, but your overall task — joining a Wi-Fi network from an App Clip — is perfectly reasonable.

Please post your bug number, just for the record.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

How to Confirm Wi-Fi Connection Success in App Clip Without Access Wi-Fi Information Entitlement?
 
 
Q