New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No sound playing on Android 12 #2278
Comments
@GabLedesma Based on test case, you need to specify the file type in 'RawResourceAndroidNotificationSound' |
by providing the extension to the RawResourceAndroidNotificationSound('sound.mp3'), Error scheduling notification: PlatformException(invalid_sound, The resource asound.mp3 could not be found. Please make sure it has been added as a raw resource to your Android head project., null, null) |
I've had a Pixel 6 that's had Android 12 on it before with the plugin and not had these issues. I don't recall others saying they had such issues either. From what I know with how the APIs work, there's no OS-specific issues when it comes to notification sounds unless there is something that the manufacturer has done with their version of Android. With that in mind, this isn't something I can help with and you'd need to investigate further. One thing I'll also mention is to check in both cases that you're actually triggering the local notification via this plugin to avoid confusion between a local notification and push notification from FCM |
Describe the bug
The notification with custom sound is working fine on my Android 14 but when I use Android 12, the notification is showing but there is no sound. I'm using FCM.
Android channel setup:
How I trigger notification:
The text was updated successfully, but these errors were encountered: