简体   繁体   中英

ios phonegap ) where should I location custom push notification sound?

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?

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM