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
Custom Sound not working! #586
Comments
@Kamoba if you have shrinkResources enabled in build.gradle, then you should explicitly tell shrinker to keep that file |
@Kamoba Android only supports lower case files in the If your app is targeting Android API 26 or higher then you will also need to setup a Category / Channel to support custom sounds on Android Oreo 8 and newer. |
Woohoo it's working! Thanks a lot gays! |
@rostopira |
@sonicwong I've never worked with ionic, but in native sdk you should add file
This will tell shrinker to keep specific resources. |
@sonicwong did you find a solution ? I'm facing the same issue with ionic 3 |
@KOSSOKO
this work fine on cordova android above v6.3. |
@sonicwong thanks for you answer. |
@KOSSOKO, what cordova android version that u are using? try to downgrade to 6.3. |
@nijesh17 Custom sound on Oreo must be linked to |
@rostopira Can you explain bit more |
@rostopira in my case, I have android 7, but can't be able to have custom sound. |
@KOSSOKO yeah, notification channels was introduced in nougat OneSignal team should add detailed instructions for that, I would suggest you to create separate issue for that |
@rostopira ok, I understand now why It doesnt work. Thanks a lot. |
Those who has shrinkResources true in app/build.gradle.. Just remove this line and it will work. |
I don't get the sound even after shrinking resources. Here is my issue: |
Description:
Hi, Even based on the advice given on this post I still can't play a different sound when receiving the notification.
based on the documentation I modified my apk, created the res/raw folder in my apk file and put it my audio file (Alarm_Survivor.wav).
Environment
I use an html Android app (Thunkable).
I receive the notification with the following request (default sound):
I tryed different extension file .mp3 and .ogg, tryed rename audio file and tryed to put it on assets folder but nothing.
The text was updated successfully, but these errors were encountered: