This warning is only shown to the user (on Android) if headphones are plugged it.
We too could display such a warning by triggering a corresponding snap-decision from indicator-sound. With our current notification-system we have all needed means for this in place. But what icon, summary- and body-text should it display? What labels should be used on the buttons. How should the phone (indicator-sound) behave if the user selects "Cancel"? How long should it (indicator-sound) remember that user-choice? Until headphones are unplugged and plugged in again? This needs some good thought and "user-journey" from Design.
What we need on the side of indicator-sound is a way to determine, if a headphone is currently plugged into the phone or not. I don't know the audio-stack well enough to answer this.
This warning is only shown to the user (on Android) if headphones are plugged it.
We too could display such a warning by triggering a corresponding snap-decision from indicator-sound. With our current notification-system we have all needed means for this in place. But what icon, summary- and body-text should it display? What labels should be used on the buttons. How should the phone (indicator-sound) behave if the user selects "Cancel"? How long should it (indicator-sound) remember that user-choice? Until headphones are unplugged and plugged in again? This needs some good thought and "user-journey" from Design.
What we need on the side of indicator-sound is a way to determine, if a headphone is currently plugged into the phone or not. I don't know the audio-stack well enough to answer this.