Specify a Custom Notification Sound for iOS Push Notifications

This feature uses a sound included in your mobile app as a custom audio signal when a push message arrives on the mobile device.

  1. Add a file named custom.caf to your project. The cloud push payload looks for a file named custom.caf. The project file explorer in Xcode, showing a file named custom.caf.
  2. Add the custom.caf audio file to the Copy Bundle Resources folder in Xcode for your app. The Build Phases tab in Xcode, showing the Copy Bundle Resources phase with the custom.caf file selected.
  3. To prevent Xcode from using cached files, perform a clean build of the folder in Xcode. In the Product menu, hold the Option key and select Clean Build Folder.