One possibility would be for ringtones and alarms to play through the current primary output for the first 2~4 seconds, and then force the phone speakers after that, just in case you aren't listening to the headphones.
One possibility would be for ringtones and alarms to play through the current primary output for the first 2~4 seconds, and then force the phone speakers after that, just in case you aren't listening to the headphones.