Live Activity update not working while AVAudioSessionCategoryPlayback in backgroud

In iOS16.1,Live Activity not update data while app in background,my app use AVAudioSessionCategoryPlayback playing music.
If use AVAudioSessionCategoryPlayback, update Live Acitvity is working in foreground, not working in background.
If no AVAudioSessionCategoryPlayback setting, update Live Acitvity is working both background and foreground.
Why? Is it iOS16.1 bug?

Post not yet marked as solved Up vote post of JBChan Down vote post of JBChan
2.2k views

Replies

Im also trying to figure this out without success

Same problem..

Same issue. I filed feedback: FB11781760. Anyone have a workaround?

  • I got confirmation from apple developer accelerator. When the Background Modes are Audio, AirPlay, and Picture in Picture, it is not possible to update the Live Acitvity.

  • Aw.. Apple should definitely support this in the future

  • It appears to work on Simulator. I got this working on the simulator, but does not work on real device.

Add a Comment

For me help change this:

try audioSession.setCategory(.playback, options: [.mixWithOthers])

To

try audioSession.setCategory(.ambient, options: [.mixWithOthers])
  • This is not a good way to solve the problem. Modifying this will cause the volume of the app to be affected by the mute button.

  • Refreshing can be achieved in this way, but after a few tens of seconds, the app will be forced to quit in the background.

Add a Comment

This is fixed on iOS 16.2.

  • This is not fixed on iOS 16.2, same problem.

Add a Comment

The same problem on iOS 16.2