Music/Cast Access upon Remote Push Notification

My app is getting Push Notifications. What I want to do is...as soon as I get a Notification, Phone should Cast a audio file to Local Google Nest Mini Speaker (Within LAN). Currently my users need to Tap on the notification to trigger the audio file. I want to Automate it.

I tried to apply the Login on "DidReceiveRemoteNotification" Event. However it plays audio file only when user Opens the App.

Any advise would be helpfull.

Thanks

App-directed pushes are not delivered to your app if your app is terminated or in the background (unless just moved to the background) so using an app-directed push just isn't going to be able to do what you want. So you'll have to investigate if a notification service extension has the ability to do what you want.

Music/Cast Access upon Remote Push Notification
 
 
Q