Why doesn't my UILocalNotification play any sound?

后端 未结 3 1196
时光说笑
时光说笑 2021-01-06 09:09

This is driving me nuts, I believe I have tried every possible approach by now, but my phone still decides to stay silent. I just want it to play any sound for now

3条回答
  •  囚心锁ツ
    2021-01-06 09:36

    UINotification doesn't play sound if the app is Active because it doesn't make sense, it assumes that you see the notification if the app is Active, but it will play sound if the app is not running or, in Background to notify user that a notification has come.

    Cheers.

提交回复
热议问题