I have a voice recording iOS App. In Player Settings, Behavior in Background is set to Custom, with “Audio, Airplay, PiP” and “Remote Notifications” set to True. However, whenever I press the home button, the app pauses! How do I know it pauses? I have a timer in my app, and when I come back the timer is the same as when I left it.
This means that the app is still pausing. Am I supposed to also code something to make it continue to run/record audio/run the timer?
Thanks!
There’s an iOS entitlement/capability that you have to assert (through XCode) that says, “I want to keep running in the background.” See:
This may require you to tell the actual Apple developer site about it (in regards your specific title bundle) so that you get an updated provisioning profile with that capability, otherwise your phone won’t allow it. Google it a bit… you might just have to make sure that Unity is twiddling the right XCode bits and that XCode gets an updated provisioning profile.
1 Like
Yep, I have already done that in the Capabilities section. (and the problem still persisted).
Doing this should be enough - it tells Xcode to allow the app to keep running… So I’m pretty perplexed.
I looked through the Apple Member Center as well for anything - but couldn’t find options making the app “even more” background-runnable…