Background processing works in the Simulator, but not on a real device

I am creating an iOS8 app that records audio. The app allows users to set up a daily recording schedule (i.e. start time and duration). This works great in the simulator. For example, suppose the schedule is to start recording at 11pm within 8 hours. I launched the app at 10:30 pm and pressed the Home button to simulate a background process. The app will start recording at 11 pm and will record for 8 hours. However, after deploying the app to iPad 2 (as part of pre-testing), the above procedure does not result in recording. However, if I leave the app, it starts recording. But as soon as I press the Home button, it will stop recording. It looks like background processing is not working on a real device.

Is there some configuration I need to set on a real device for this?

+3


source to share





All Articles