1

I found out I need to put my custom notification file to xcode project but I am not sure where to..

where should I put my notification sound?

Seho Lee
  • 4,048
  • 9
  • 32
  • 42

2 Answers2

0

The file has to be named beep.wav and placed right in the www folder.

From the Cordova Docs:

  • There is no native beep API for iPhone.
    • Cordova implements beep by playing an audio file via the media API.
    • The user must provide a file with the desired beep tone.
    • This file must be less than 30 seconds long, located in the www/ root, and must be named beep.wav.
Louis B.
  • 2,348
  • 1
  • 29
  • 51
  • But the Pushplugin docs say differently https://github.com/phonegap-build/PushPlugin#ecb-amazon-fire-os-android-and-ios – ajbraus Jul 02 '14 at 20:46
  • See the date on my answer, it's from almost two years ago, so it might be a bit outdated. – Louis B. Jul 03 '14 at 07:53
0

Custom notification sound can be named anything you like and put the .wav file into your Resources folder in the xcode project. Then specify the name in the payload of your push notification.

ajbraus
  • 2,909
  • 3
  • 31
  • 45