How to use NetworkOperatorHotspotAuthenticationTrigger in UWP

146 views Asked by At

I want develop an UWP app use to login to paid wifi. So I have refered to NetworkOperatorHotspotAuthenticationTrigger. When I register background task with that trigger, I was received "Access is denied".

Has anyone done it?

1

There are 1 answers

0
Jay Zuo On

As it is declared in NetworkOperatorHotspotAuthenticationTrigger class:

Note An app can only instantiate this object and register for the hotspot authentication event after a WLAN profile has been provisioned that references this app to handle hotspot authentication.

So please make sure you have provisioned a WLAN profile with a corresponding configuration before using this class. If not, you will get Access is denied. error while registering.

For more info, please see Integrating Windows with wireless hotspots and Wi-Fi hotspot authentication sample.