I'm using swift 4.2. I want to create personal hotspot on my iOS device(iPhone) but not finding any solution to this. I Read on another blog that Apps are not allowed to access settings like bluetooth, wifi and personal hotspot is it true??
You cannot create hotspot programmatically.
The only way to create hotspot in iOS is to go to setting and do it manually.
iOS is always conscious about the users private data and the user
settings so if you are changing any type of any settings the user
should be informed and user should on his own should turn off/on the
the settings like WiFi/hotspot or anything which is related to the
setting of the user in the settings menu.
Related
In iOS, is it possible to check the status of your personal hotspot from code? We need to confirm the user has enabled their hotspot before our application starts a routine, is this possible to check?
Goal:
I want to create app (with Swift) where user set his admin passcode and setup wifi settings (SSID, wifi password) which can not be changed from general settings on his device but only by using my app after entering admin passcode. I looked at apple documentation (SystemConfiguration) without success. I can distribute it Ad-hoc without submitting app for review.
Why I need it?
My customer have application on iPad device which is not working on newer iOS versions and have configured wifi router with specific network traffic restrictions for preventing access to apple update servers. Problem is when someone changes wifi settings and connect to another network without those restrictions. He will see update reminder every day and probably he will install that update and application stops working.
Jailbreak is not solution. I can not edit or update this installed application he has on iPads.
Questions:
Is there a way to setup iOS (9.1) device wifi settings (network it is connected to)?
Is it possible to prevent user from changing wifi
settings in general settings on his device?
Is it possible to implement such a feature like this in iOS devices, allowing an app to be always on top?
Using private APIs/workarouds is not a problem.
In iOS 6, there is a feature called Guided Access
For details check:
Apple Support
Guided Access
Kiosk Mode
What does the iOS SDK provide in terms of programmatic access to the device's settings (usually accessed via the Settings app)?
After reading through Apple's Preferences and Settings documentation I'm not sure if an app can programmatically adjust the device's brightness or perhaps toggle wifi on/off. I'm experimenting with NSUserDefaults right now. Any help or advice is appreciated.
Yes, for some settings, by using a private API you can access them.
However, apparently, using these private API's prevents your app from being accepted into the app store.
A Link:
Access iOS settings from code
Hope this helped! ^_^
Apple's official public APIs do not allow an iOS app to access General settings in the Settings app, such as the wifi enable. NSUserDefaults only allows access to those preferences and settings created specifically by that one app for its own use.
Is there a way where we can programmatically reset the iPhone settings to factory default settings? We have a Reset Option in General section of the Settings application. Can we access that programmatically?
Thanks
Sudheer
This isn't supported by the SDK. There might be something you can do with jailbroken phones (which would obviously limit distribution), but through the official SDK, there isn't any way.