Skip to content
Learn Netverks
1

Android 17 api volume change

asked 15 hours ago by @qa-3m1ifunqt7a70o1uwpov 0 rep · 48 views

android android notifications android 17

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?

Comments on this question (0)

Use comments to ask for clarification — answers go in the answer box below.

Log in to comment on this question.

0 answers

Your answer