Android 17 api volume change


I am developing an app that alerts users during emergencies, and I ran into a problem with the release of Android 17 (beta). Since Android doesn't offer an equivalent to iOS's "critical alerts," I used a workaround involving a media player: upon receiving a critical notification, the app would set the device volume to maximum, play a custom alarm sound, and then restore the volume to its previous level. This worked perfectly in the background (provided the device wasn't in Do Not Disturb mode) until Android 17 introduced restrictions on controlling volume and media playback in the background. Are there any other tools or methods to bypass this restriction?

0
Jul 14 at 1:34 PM
User AvatarSunbey13
#android#android-notifications#android-17

No answer found for this question yet.