Limitations of programmatically setting phone calls - ios

Is there a way of programmatically setting an app so that it lets you automatically reject all phone calls while in the app?

Thankfully this is not supported in any way. A 3rd party app has no control at a all over how a phone call is handled.
This might be possible on a jailbroken device using private APIs, but certainly not for an App Store app running on normal devices.

Related

Can we lock a phone with iOS programatically?

I need to set a timer to lock an iPhone from my app. While using the application, after 3 to 5 minutes the phone should become locked.
Short answer: You can't.
Long Answer: For the security of iOS users, Apple does not allow any application to work with important hardware matters, such as locking the iPhone or controlling the usage of other apps. If your app even attempts to do such a thing (using any method, like external APIs), your app will immediately be rejected by Apple. It is not even worth trying.
You cannot lock the screen programmatically without any private API. Even if you use a private API, your app may probably be rejected by App Store.
However you can indeed achieve by sending keyboard events from paired bluetooth hardware devices. But that means your code depends on a Bluetooth connection and I cannot think of any practice use of that. To do this with Bluetooth, click here.

Is it possible to turn on/off notification from different applications on ios

I am working on an application that will allow the user to turn off cellular data or at least turn off notifications from other applications on the device, all through my application. Is this possible? (I know that in Android it possible)
Your app has absolutely no control what-so-ever of other apps, not even indirectly. The one exception is using a custom url scheme to open the app, and optionally, ask it to do something.
No, on iOS you can't even find what other apps the user has installed.
Even if you could, they are all sandboxed. You can't touch anything inside the other apps.

Access apps inside an app

I'm new to iOS development, suppose I'm making an app for parental control over their kids which would have the apps that would be added by the parent so that the child is restricted to only certain apps. How will i access the apps on the device inside this app?
Sorry, but that won't be possible on an standard (un-jailbroken) iOS device. Apple sandboxes Apps so they can't access anything outside of their "sandbox". That includes the file system, the OS, settings and other apps on the device.
It might be possible to do it on a jailbroken iOS device, but even then you'll have to hack into Apple's OS and honestly it's probably not worth the effort, especially given that you could never submit such an app to the app store..

Best way to transfer files from 3rd party device to iOS app

What is the best way to transfer files from 3rd party device (that I want to build) to iOS app (that I want to create)?
The device will generate data which will be processed by this iOS app and presented afterwards.
This device will be some kind of GPS logger - tens of megabytes.
Can I use Bluetooth PAN initiated and handled completly by the iOS app?
Can I make WiFi direct connection initiated and handled completly by the iOS app?
For this solution I need MFI program enrollment?

Controlling iOS device

Is it possible from my app to run in background, turn on/off other apps, control the iOS device without jailbreaking it? I understand that this app will not pass Apple's review/approval, but I am not planning it, instead, I just need to distribute it to clearly defined list of devices. I just prefer not to require to jailbreak device.. Is it possible?
I believe its possible without actually jailbreaking the physical device. Check out the second answer to this question for some more information. iOS app without developer program or jailbreak

Resources