Question

Can a App record the Voice in the surroundings even when it runs in the background and play the recorded audio? Is it possible?

Was it helpful?

Solution

Multitasking doesn't allow audio recording to be in the background, so no.

OTHER TIPS

This is possible there are multiple voice recorder apps that can run in the background in the appstore. See also this stackoverflow question iOS multitasking for an Audio Recording application

Yes, according to the link below: https://developer.apple.com/library/content/documentation/iPhone/Conceptual/iPhoneOSProgrammingGuide/BackgroundExecution/BackgroundExecution.html

Playing and Recording Background Audio An app that plays or records audio continuously (even while the app is running in the background) can register to perform those tasks in the background. You enable audio support from the Background modes section of the Capabilities tab in your Xcode project. (You can also enable this support by including the UIBackgroundModes key with the audio value in your app’s Info.plist file.) Apps that play audio content in the background must play audible content and not silence.

Typical examples of background audio apps include:

Music player apps Audio recording apps Apps that support audio or video playback over AirPlay VoIP apps When the UIBackgroundModes key contains the audio value, the system’s media frameworks automatically prevent the corresponding app from being suspended when it moves to the background. As long as it is playing audio or video content or recording audio content, the app continues to run in the background. However, if recording or playback stops, the system suspends the app.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top