-
Notifications
You must be signed in to change notification settings - Fork 198
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
Unable to add custom sound for notification #477
Comments
Hello @KOSSOKO , Browsers do not currently support sounds on web push notifications. This feature is in development. Chrome Thread: https://bugs.chromium.org/p/chromium/issues/detail?id=442131 Firefox Thread: https://bugzilla.mozilla.org/show_bug.cgi?id=1105222 With Android 8 you need to start adding sound through notification Categories aka Channels. For more on Android Notification Categories, please see: https://documentation.onesignal.com/docs/android-notification-categories For Android 7 and lower, you can add sound in the same way as before. Please see this guide to edit the notification's sound on mobile https://documentation.onesignal.com/docs/customize-notification-sounds |
Hi @rgomezp I followed steps mentioned in the first link you give, and with my android 7.0, I have no sound. I don't know how to do. |
Try logging the sound variable and make sure that you are not including the file extension |
@rgomezp How to logging the sound variable? |
I would recommend checking to make sure that the file is still there. You should be able to navigate to it using the file explorer. If it isn't getting copied to the APK, that sounds like something unrelated to the OneSignal SDK |
I unzip my apk and in the res/raw folder, I have an xml file with the name consumer_one_signal_keep.xml instead of the soun, and in the content of this file, I have
I have no idea if it is the correct behaviour or it's an issue. |
Try naming it the same as the file defined in the keep file ( |
After renaming the file with onesignal_default_sound, I still have the same behaviour. I followed the documentation for Ionic, but I my custom sound is not used |
We haven't gotten multiple reports of this issue. I wonder if you are perhaps doing something wrong |
I really don't know. I followed the documentation step by step. And I tried many solutions on Stackoverflow, but any works for me. |
My recommendation would be to try to reproduce the issue in a blank project and then if you want you can send us the project so we can help you take a closer look. |
Ok, I will try with a blank project and give a feedback |
Closing due to no response |
Hello, having the same issue since updated from ionic 3 to Ionic 4. Is there a solution? Thanks! |
Hello, Browsers do not currently support sounds on web push notifications. This feature is in development. Is this feature still in development? I have reviewed the documentation without results about sound in web push notifications. |
Hi there i am unable to integrate custom sound notification even i have folllowed the documentation properly. could you please help me to debug and resolve it ? |
Hi all, I use Ionic 3 with the latest version of onesignal. I have a back end that send a notification to my app. I'm tried without success to have a custom sound notification.
First, I create the sound and put it inside C:\Users\tkossoko\Documents\rdv-pref-app\app\V1\rdv-pref-app\platforms\android\res\raw\onesignalsound.mp3
In my back end, I send the notification like this
The text was updated successfully, but these errors were encountered: