0

I have to write an app that enables hotspot programmatically. After doing a lot of search, I realized that is impossible to be done with public API.

So I decide to use private API, though my app can not publish to store. There are some steps that I have to do:

  • Check if hotspot is enabled?
  • Notify user, then enable hotspot in case OK.
  • After enabled hotspot. I will use ARP table to check client is connected to hotspot.

I know my ideal is not good. But it seems that there is no other way to do it.

Please let me know if you have experience about my problem.

Soheil Novinfard
  • 1,358
  • 1
  • 16
  • 43
kemdo
  • 1,429
  • 3
  • 15
  • 29
  • Possible duplicate of [iOS programatically setting up device in AP mode](http://stackoverflow.com/questions/16964131/ios-programatically-setting-up-device-in-ap-mode) – KlimczakM Mar 06 '17 at 07:06
  • did you compare my post and your collected post ( title/ goal/ answer) ? – kemdo Mar 06 '17 at 07:19
  • Yes, your answer is `In that file, you will want to set 1023 for key State to enable the Tethering feature. To disable the feature, you will want to set 1022 for key State.` - you can check this state (in the file mentioned in that answer) to solve your problems. – KlimczakM Mar 06 '17 at 07:24

0 Answers0