在 xcode 中添加自定义声音 mp3
add custom sound mp3 in xcode
我正在构建 React 本机应用程序,我希望将通知声音更改为我拥有的 mp3 格式的自定义声音。
在 appcenter docs 我读到我需要将新声音添加到 Library/Sounds
sound: Add this key when you want the to play a sound. The value of this key is the name of a sound file in your app's main bundle or in the Library/Sounds folder of your app’s data container. If the sound file cannot be found, or if you specify default for the value, the system plays the default alert sound.
在 xcode 中,当我打开我的项目时,我没有看到任何名为 Library 或 Library/sounds 的文件夹。而且我不确定在哪里创建它。我有 Libraries 文件夹,里面有字体,没有任何文件夹。
引用此博客:https://medium.com/@prakashmaharjan20/play-custom-push-notification-sound-ios-a767748a46
您不能为 ios 使用 .mp3 文件,您可以使用 .caf 文件
我正在构建 React 本机应用程序,我希望将通知声音更改为我拥有的 mp3 格式的自定义声音。 在 appcenter docs 我读到我需要将新声音添加到 Library/Sounds
sound: Add this key when you want the to play a sound. The value of this key is the name of a sound file in your app's main bundle or in the Library/Sounds folder of your app’s data container. If the sound file cannot be found, or if you specify default for the value, the system plays the default alert sound.
在 xcode 中,当我打开我的项目时,我没有看到任何名为 Library 或 Library/sounds 的文件夹。而且我不确定在哪里创建它。我有 Libraries 文件夹,里面有字体,没有任何文件夹。
引用此博客:https://medium.com/@prakashmaharjan20/play-custom-push-notification-sound-ios-a767748a46
您不能为 ios 使用 .mp3 文件,您可以使用 .caf 文件