Why doesn't my UILocalNotification play any sound?

后端 未结 3 1216
时光说笑
时光说笑 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

    You have to use *.caf format. I spent a lot of time but i found solution. I tried *.mp3 *.wav but doesn't work.

    I hope it works.

    How can i convert to *.caf format?

    1) Open terminal

    2) Example:

    cd /Users/username/Desktop/FolderName

    Click Enter

    3)

    afconvert -f caff -d LEI16@22050 -c 1 BlaBla.mp3 BlaBlaNew.caf

    Click Enter

提交回复
热议问题