Basically, I have an idea for my App, I would like the iPhone camera to keep recording a video even when the user is doing something else (like checking twitter, for example) like a spy cam. I have many coding solutions available
Is there a way I can code this with either HTML5 ,CSS, javascript or xcode?
iOS will not allow you to run the camera constantly in the background. This is because once each app enters the background state, it only has a very short time to wrap-up it's processes and prepare to be suspended (iOS does this to conserve memory).
From the apple developer docs
In iOS, only specific app types are allowed to run in the background:
- Apps that play audible content to the user while in the background, such as a music player app
- Apps that record audio content while in the background
- Apps that keep users informed of their location at all times, such as a navigation app
- Apps that support Voice over Internet Protocol (VoIP)
- Apps that need to download and process new content regularly
- Apps that receive regular updates from external accessories
The only other way to achieve what you want is to jailbreak your device and distribute your app on Cydia (the jailbroken App Store). Jailbreaking will free your device from the restrictions of IOS but will also make your phone a lot more vulnerable to being hacked...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With