react-native-notifications
react-native-notifications copied to clipboard
Code that setting NotificationChannel sound on Android might lead unexpected consequences
I'm using react-native-notifications to create notification channel on android. But some users using Android app complained about notification, something like "I can receive notifications but it doesn't sound". So I struggled to find out why but cannot find out what's going on there.
After some investigations, I found out that setSound() method in lib/android/app/src/main/java/com/wix/reactnativenotifications/core/notification/NotificationChannel.java passes null into soundAttribute parameter.
(compared below: same code in notifee/react-native is setting soundAttribute parameter)
I'm not good at android so I cannot pick exact cause and consequences, but there might be some differences, and reasons that some user complained about notification sounds.
I know it's not good reference, but I asked Google Bard about this. -- Sorry, I was desparate :( https://g.co/bard/share/80b658b9e410
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
The issue has been closed for inactivity.