0

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?

ndthanhdev
  • 169
  • 1
  • 2
  • 12
  • Hi there, any update? Did my answer solve your problem? Is it an [acceptable answer](http://stackoverflow.com/help/accepted-answer)? – Jay Zuo Jan 17 '17 at 07:47

1 Answers1

1

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.

Jay Zuo
  • 15,653
  • 2
  • 25
  • 49