How to power iOS device off [duplicate] - ios

This question already has answers here:
Activate airplane mode programmatically?
(2 answers)
Closed 7 years ago.
Yes. I actually think that what I am asking is impossible but I'd like to know if you have any idea how to power the iPhone off with swift or objective c code, or at least enter the airplane mode.

You cannot do this with the Public APIs provided by apple. This may be done using the unreleased Private APIs.
But According to Apple's policy, usage of any Private APIs will lead to rejection of App from App Store.

Related

Application for only specific iPhone [duplicate]

This question already has answers here:
Restrict to certain iOS target devices for App Store submission
(4 answers)
Closed 5 years ago.
Is is possible to write an iOS application available for only one or some specific Apple devices? If yes, is it risky and can be rejected by App Store Review? I can check if the device is something but I want my app to unavailable to other devices on App Store.
It is possible to target specific models, so that the app will be available only to those machines. How that affects the review process, I have no idea.

Is there any way to completely turn off an ios device programmatically in xcode? [duplicate]

This question already has an answer here:
How to power iOS device off [duplicate]
(1 answer)
Closed 7 years ago.
I want to make an application that would turn off an iphone at a set time every night;
Absolutely not! (Unless we are talking about a jailbroken app.)
Apple has a very strict sandboxing approach for third party apps. To access the system, you have to use the provided iOS APIs and none of them offers this kind of control.

Is it possible to read/access SMS through an iOS application (> ios7) [duplicate]

This question already has answers here:
iPhone application – reading SMS
(3 answers)
Closed 7 years ago.
In a non jail broken iphone is it possible to access/read sms from an iphone application.
I have read that in case of an Android phone this thing is possible, as i need to develop an ios app which can automatically read an OTP sent through an sms to a user.
Since iOS application is sandboxed, i just want to confirm the possibility to do it legally.
No.... it's not possible in iOS because it's privacy issue.

Fingerprint implementation in iOS [duplicate]

This question already has answers here:
Authentication using ios keychain - touch id (is this possible) [duplicate]
(2 answers)
Closed 8 years ago.
Apple has released Finger Print scanning in iOS 7.
which SDK do we use for implementation?
There is no publicly available SDK for it yet. Nor there is privately available SDK for this.
It is only used in iPhone 5S but not in iOS 7 in general.
You can't use it even if you jailbreak your device - Xcode does not publicly provide such mechanisms.
Fingerprint can be used only for unlocking iPhone and AppStore purchases. There is no public API for 3rd party developers.
No, iOS SDK does not have any public API for TouchID access. This is done for security reasons I suppose. Confirmation from Apple's official developer forums (You have to login using your AppleID).
There is also a rdar://14958904 filed for this: Touch ID API. Hopefully in future releases Apple makes the sensor data available through a public API for 3rd party developers.

objective c check if Bluetooth Availability Changed [duplicate]

This question already has answers here:
How to get the status of bluetooth (ON/OFF) in iphone programmatically
(7 answers)
Closed 7 years ago.
The question is simple: Is there any way to get noticed when the users enables or disables bluetooth on a iOS device?
I searched the internet but just found some private API´s.
Thanks for your help.
You can use Bluetooth Low Energy's (BTLE) interface. You will get updates whenever an user disables/enables Bluetooth in settings. Check the CBCentralManagerDelegate Protocol Reference. And of course you can also check the state

Resources