Open emreycolakoglu opened 5 years ago
You have to convert to caf format for ios (Not sure if in the mean time apple updated it to work with mp3...)
Add custom sounds: Convert your ringtone to .caf and .mp3 file formats.
iOS: Add yoursound.caf to the Resources folder of your xcode project. Android: Add yoursound.mp3 to the 'raw' folder
Use 'yoursound' as string for the sound parameter.
Does that solve the problem?
Im sorry, I forgot to say I'm only building for Android.
Hmmmm, it says 'google.vorbis.decoder' for a mp3... I would expect a mp3 decoder to be used for mp3's !? Can you try with another mp3 and check if has the same result?
Hi, I tried with other sounds, no luck. I think this issue is bigger than this plugin. See https://github.com/invertase/react-native-firebase/issues/1930 I was able to use custom sounds in Android 6 using firebase. You can close this issue if you want. Thanks again.
I'll leave it open for now... might trigger other people's input... Thanks for referencing other project issue!
Hi, first of all thank you for this plugin. I have a problem with custom notification sounds. When I debug the code, I can see my custom mp3 is resolved in resources. https://i.imgsafe.org/c7/c7c04bd67c.png But in logcat, I see this error,
E/OMXNodeInstance: setConfig(0xe5d26c00:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)
and the device plays default notification sound.Any help is appreciated.