سؤال

Is there a private API for enabling tethering in an iPad app? Since the iPhone supports tethering under some contracts, the existence of an API in the iOS is obvious…

هل كانت مفيدة؟

المحلول

I'm not aware of a private tethering API.

If all you want to do is have your own private WIFI hotspot, and you're an iPhone developer, then you can download/build/install iProxy: https://github.com/tcurdt/iProxy/wiki/. Not quite tethering but close enough for most needs.

نصائح أخرى

There is a file located in the Preferences folder, along with the com.apple.SpringBoard.plist:

/var/mobile/Library/Preferences/com.apple.MobileInternetSharing.plist

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.

This action is only possible on a jailbroken device

I would think anything dealing with tethering would be handled by the OS, and exposed only in the Settings app. What sort of API functionality would you expect for that kind of OS-level feature?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top