Closed Arthur-Noh closed 1 year ago
I got the idea here. And I succeeded. https://github.com/zmxv/react-native-sound/issues/544
My solution is to make shrinkResources false. (android/app/bundle.gradle)
Sound is a resource that is stored locally and used. I don't know why it's being removed.
:beetle: Description
I want to make a function that makes a sound when I press a button.
I follow the manual, and it works well on the simulator. Android: Voice file (beep.mp4) is located in android/app/src/main/res/raw. iPhone: Add Files to [PROJECTNAME] on xcode.
The iPhone's testFlight works well, too.
However, it doesn't work when I try to use it on a real cell phone.
The app will be created normally. But, Fail to load sound. { extra: -2147483648, what: 1 }
Could you help me?
:beetle: What have you tried?
I've looked at several issues, but I haven't solved my problem.
:beetle: Please post your code:
:bulb: Possible solution
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?