I want to be able to start/stop audio from my interactive widget.
But when I try to start playback with my AppIntent, I get the error,
ATAudioSessionClientImpl.mm:281 activation failed. status = 561015905
This indicates the app isn't set up properly for background audio, but it has Audio, AirPlay, and Picture in Picture
checked in Background Modes.
Is this an intentional limitation of 3rd party widgets?
The Apple Music widget is able to start and stop audio without the app being in the foreground. Can third party apps do it too?
I figured it out.
I just found this: https://developer.apple.com/documentation/appintents/audioplaybackintent