I noticed it is possible for an iOS app to continue recording audio in the background while another app is in the foreground recording audio (note that this isn't strait forward on the iOS simulator, but a hack involving a background process makes it possible).
Is there any way to ensure that no other apps are recording audio before you start to record? If so, is there any way to stop other recording apps so that an app can record?
No, you cannot hinder another applications functions (well not using the iOS SDK) the only way this would be possible is on a jailbroken iPhone. But with an application built for the App Store this is not possible.
I think you may just tell user you can not get access, let them to turn off other background app.
Related
I need to block the usage of the camera while my app is running, even in the background. Is there a way to do that?
no im afraid thats not in your apps 'area of authority'
each app on ios runs sandboxed and you cant influence other apps
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.
Basically I would like to turn on my app when in a certain environment(club scene), can an app be turned on in iOS using an algorithm?
Regards,
Feras A.
iOS is not in favor of keeping the mic open all the time to record everything. So I dont see this is possible anytime soon.
You have to have an app that records the voice all the time and does a lot of FFT in order to determine what kind of scene you are in.
Unless your app is a music streaming app unfortunately app will be suspended by OS sooner or later so you cannot listen all the time.
I am currently working on streaming app which stream iPhone song to other hardware over TCP network, hence the sound will come out of a hardware that is connected to the iPhone by wifi.
It's working fine when the app is foreground but in the background the app will be terminated after some time.
There is one app "Sonos" which is working in background. I don't know how it streaming in background to hardware, Is there any different approach used?
Could you tell me the solution that will accept by apple?
Thanks in advance........
Apple supports backgroundmode for certain operations/task. Check the screenshot.Select your target and go to capabilities tab there you can find this options.Select the task/operation for which your want background support.
I want to make an app which will have some settings option for volume control. When any app will start playing any sound even phone call then the sound volume will be according to volume of my app.
I want to make it in native iOS platform. Does it possible? If possible then any idea or resources How?
The iOS security sandbox will prevent your app from changing the audio settings (including volume) used by any other app.