I’m trying to get a custom notification sound to work.
It looks like I should be able to set the sound to a string here:
At the moment only the default sound plays, I would like to get a custom wav playing.
Setting the sound to a string has no effect. What should I do?
Hope you can help!!
custom notification sounds are currently bare workflow only, so you’ll have to expo eject before using that feature
This is because the files need to be in a particular location (on Android- in the res/raw sources, and on iOS- in the iOS application bundle), which you only have access to adding files to in the bare workflow
Thanks for your quick response - so eject, then add the sound file (say “alarm.wav” to the bundle in XCode), and refer to by simple filename in the js?
Thanks, I did a git reset --hard, ejected again, went through the steps this time it worked! I must have bungled something the first time. Thank you so much