Force audio alert to loud speaker

前端 未结 3 1132
眼角桃花
眼角桃花 2021-01-26 11:36

I have a small app. In this app, the loud speaker makes noise every a certain time that I set up.

Now, I want it makes noise over it\'s built-in speaker even if a headse

3条回答
  •  南方客
    南方客 (楼主)
    2021-01-26 11:49

    You have to Override the Audio Route AFTER the headphones are plugged in. Your app can request an Audio Session Notification for when this occurs, and then do the Override again.

提交回复
热议问题