I am trying to play custom sound when receiving notification. I am using eas build. I have added a wav sound in the following location: “./assets/sounds/notification_message.wav”. I added it to app.json using the expo-notification config plugin, then created a custom-dev client using eas build -p android --profile development.
The problem is that when sending a push notification using fcm or scheduling a notification with the sound property: “notification_message.wav”, the message is received but no sound. I am testing on android 6, so there is no channelId is needed as mention in the documentation.
In our development, we were able to get notification sounds using a channel, BUT only if the notification json did NOT include a “sound” attribute. The “sound” attribute suppressed all sounds. This was in Android 9.
yeah I am aware that it could work with android channels, but the problem is that android 7.1 and lower dont support channels and you have to pass the sound prop. I found that if you pass vibrate property the sound works, but that doesnt make sense and seem like a bug