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.
Related
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.
I built a game which fully optimised with iOS7
many effects are not supported or not run well in iOS6
and cannot run in iOS5.
May I know if it is acceptable by App Store?
and Can I ask user to upgrade to iOS7 if detect device is below iOS7?
thank you
yes. You can set but you lose most user my suggestion set iOS6 as your deployment target it's best.
I highly recommend that you only support the latest two versions. Supporting the latest three iOS versions would only be necessary on the brink of a new iOS release. Supporting iOS versions that hardly any of your users have is a waste of time and money. Since Apple users traditionally update their device OS sooner rather than later it is beneficial to follow that trend.
iPod touch and iPhone 3GS and some of model doesn't have iOS 7.
Yes, i know an application that is only supported on iOS 7.0 and above. Check this
https://itunes.apple.com/us/app/buzzfeed/id352969997?mt=8
You can alert user if iOS version is less than iOS7 but for that your app needs to support iOS < iOS7 and all features UI and functional should be supported right from minimum supported version. App store may reject your app if it technically supports lower versions but is buggy.
Instead, you should set application deployment target as iOS7. This will allow to download and install your application only on iOS7 and above device.
For setting this goto your Xcode project->Target->Build Settings->iOS Deployment Target and set iOS7.
So when user visits your app on the app store he will see this for your app.
Even Apple's own applications like Pages, Keynote support iOS7 and above.
Hope that helps!
Yes, your application support only iOS 7. but if you set target version lower like 6 then your application will crash and face negative impact and just showing a popup to user is not a very smart idea for a New application.
yes, you can set your deployment target to iOS7, it will then only install on iOS7 devices.
NO, you can ask the user to upgrade if your app is not installed in that device, user will by default get a pop-up that this app only support iOS7 and above.
yes, you can set your deployment target to iOS7
you click Project-> Target-> Build Settings-> iOS Deployment Target and set iOS7
and also set
you click Project-> info -> iOS Deployment Target and set iOS7
Yes you can do this by set deployment target to IOS7 which means, your app will run on IOS7+ devices. It is 100% acceptable by app store.
Yes you can publish app that only support ios 7
You need to set at two places
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.
How can I restrict my app for iPhone's only, excluding iPod touch ?
I don't want my app available on iPod Touch, is there a property in the info.plist I can use to specify this or is this something I will encounter during the setup on itunesconnect ?
You could add gps as a required device capability simply to exclude devices without the GPS hardware, which would rule out iPod touches.
Edit: Actually, the correct way to do this is to include for the UIRequiredDeviceCapabilities entry (a dictionary), the telephony key with a value of YES, meaning, only devices that support telephony can use the app.
Also, check out the complete reference of what keys are available for use with UIRequiredDeviceCapabilities.
The above solutions are not the way Apple has recommended it should be done one their website. There are two ways that I am currently aware of.
When creating, the project in the latest version of Xcode, it allows you to choose the device family. Don't select universal or ipod. Just select iPhone.
An alterntive is in the application's Build Settings change the Targeted Device Family to iPhone, instead of iPhone/iPad.
I need to restrict the deletion of an iOS application for MDM (Mobile Device Management) purposes. Is there any way I can achieve this programmatically or otherwise?
This is not possible.
You cannot restrict the deletion of an iOS application.
However, if a particular user wishes to restrict deleting of third-party applications, it is possible to do so by navigating to General > Restrictions and turning on the Deleting Apps switch.
Well you could jailbreak the phone and then hack the app's flag to be like a system application.
But in the real world: no, you cannot do this.
There is absolutely no way that you can do this.