NEHotspotHelper can't work

When I use this method

+ (BOOL)registerWithOptions:(nullable NSDictionary<NSString *,NSObject *> *)options

queue:(dispatch_queue_t)queue

handler:(NEHotspotHelperHandler)handler

it's always retun 0.I want to give the name of the system of wifi list to add a subtitle, but add do not enter!The reason seems to be registered is not successful, what should I do?

Accepted Reply

Have Apple granted you the special entitlement (

com.apple.developer.networking.HotspotHelper
) required to use this API?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Replies

Have Apple granted you the special entitlement (

com.apple.developer.networking.HotspotHelper
) required to use this API?

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

I have access to the authority when I configuration profile also add this in, but don't know why I always return 0 can't get to the content of the wifi list

You should check the entitlements of your built binary, as described in Debugging Entitlement Issues.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"