-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
android: local sound file is not played #24
Comments
Hello Allard, move the sound.mp3 to res/raw. On Android images or sounds must be placed into the res-folder.
|
Thanks, that's useful information - it works OK now! I also noticed you updated the readme file accordingly - it is more clear now, Many thanks again. |
I also had this same problem. When I specify the location of a mp3 sound, it's simply not fired. I've tried this, but it's not working:
|
Hi Rodolphorosa,
|
this is the package name of your application? |
yes! |
thanks, it worked! |
hey guys, the same problem, sound not played in my real android device version 4.4.2
how to solve this problem? anyone help please, Thanks. |
Don't hijack closed threads that are over three years. Raise a new issue with the template in #1188. |
Thanks for this great plugin! However, I encountered one issue with Android: When I specify a custom notification sound, it works OK when I specify a sound file on a remote location, i.e. sound: 'http://example.com/sound.mp3'
But when I specify a local sound file it doesn't work. No sound, no error messages either. My sound file is located in the top www directory. I tried many ways to specify the location, but nothing works:
sound: 'sound.mp3'
sound: '/sound.mp3'
sound: 'www/sound.mp3'
sound: '/www/sound.mp3'
sound: 'android_asset/www/sound.mp3'
sound: '/android_asset/www/sound.mp3'
sound: 'file://sound.mp3'
sound: 'file:///sound.mp3'
sound: 'file://www/sound.mp3'
sound: file:///www/sound.mp3'
sound: 'file://android_asset/www/sound.mp3'
sound: 'file:///android_asset/www/sound.mp3'
I this a bug, or am I doing something wrong? Please advise
The text was updated successfully, but these errors were encountered: