Is there a way for the app currently playing music or voice in the background to know when a Critical Alert or push comes?
Currently, my app contains code that stops playback when a call comes in while music or voice is playing in the background. So, if a call comes in during playback, it stops normally.
However, there is a phenomenon in which playback cannot be stopped when a Critical Alert or push comes.
When a Critical Alert or push comes to the device, is there a way in the code for the app currently playing music or voice in the background or foreground to know at that moment?
We are not sending out Critical Alerts or pushes.
I would like to know how to resolve the situation when receiving a Critical Alert or push sent to all users in one country.