How do I add a file to the main bundle's /Library/Sounds directory?

前端 未结 3 1672
Happy的楠姐
Happy的楠姐 2021-02-08 11:31

According to Apple\'s documentation, sound file in the ~/Library/Sounds will be search by system when trying to play a sound. How do I add a sound file to this folder?

I

3条回答
  •  误落风尘
    2021-02-08 11:38

    I had the exact same problem at work. I would suggest -

    1. Have multiple sound files in your project.
    2. Persist user's sound selection.
    3. When you receive push notification, play the sound using what you persisted in step 2.

提交回复
热议问题