Shiny Push Notification, How Can I set a notification sound? #1447
Unanswered
nickdavidbhs
asked this question in
Q&A
Replies: 2 comments
-
Hi , |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would like to know how to enable a custom sound when a push arrives on android also? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, is the first time that I am implementing push notifications for an app.
And the documentation in Maui is not that complete.
I got so far to use the push Notifications and access the delegate events in both iOS and Android.
But I have a requirement to use a custom sound file when the notification appears in the device, I am trying first in android this.
But even if I add
My sound file in the Android project under Resources/raw
Example of my csproj:
And add the sound in the fcm push:
The fcm documentation mentions that only need to add the sound file name in the push for android, all good with that, used google documentation for it. Mentioning it as I understand that this forum is not for server side code.
https://firebase.google.com/docs/reference/fcm/rest/v1/projects.messages
The sound is not changing from the default.
Tried to create a channel with a default sound like this in the Android Main Activity:
But as in the example shows, I am not sure how to map the notification.wav sound in the path.
Searching in stack overflow or chatgpt got no information so far, only a few methods of Xamarin forms that are not in Maui.
At least I think this way works as how it is right now, I am not adding any sound, but the default sound is not appearing any more, so I think I am only missing the correct mapping
Does any one know how to enable the sound for my notification?
Beta Was this translation helpful? Give feedback.
All reactions