FirebasePushNotificationPlugin icon indicating copy to clipboard operation
FirebasePushNotificationPlugin copied to clipboard

[HELP] iOS Sound unclear documentation

Open jtorvald opened this issue 5 years ago • 3 comments

💬 Questions and Help

Under: https://github.com/CrossGeeks/FirebasePushNotificationPlugin/blob/master/docs/iOSCustomization.md It says: that it can play sound and that "A sound file with the value set should be in your should be on Library/Sounds."

This sentence is not clear (and a tiny bit incorrect) but I tried to add the sounds to my iOS projects in Sounds and Library/Sounds and set build action to Bundle Resource (on a .wav).

But when I receive the message I see the sound : "message" or even message.wav but message.wav is not played. I hear the default sound instead.

So I either must be doing something wrong here or the functionality is broken.

If someone points me in the right direction I will update the documentation when I have it working 👍

jtorvald avatar Jun 15 '20 10:06 jtorvald

Seems that if I put the audio files in the root folder of iOS that it works. Is this the way it should be used?

jtorvald avatar Jun 15 '20 11:06 jtorvald

You can put the sound file into the Resources folder of your iOS project. Make sure the build action is set to BundleResource.

daniel-leinweber avatar Nov 17 '21 09:11 daniel-leinweber

hello any update ?

vikoms avatar Mar 13 '22 05:03 vikoms