Open EmperorEarth opened 4 years ago
This should be labeled with android
and bug
. I'm not sure how I labeled this issue question
label nor how to change it.
I am facing the same problem with codepush
Hi with relative path with code push that is not working.
I copied my audio files in android/app/src/main/res/raw folder. And I used
const whoosh = new Sound('abc.mp3', Sound.MAIN_BUNDLE, (error) => {
if (error) {
return;
}
whoosh.play((success) => {
whoosh.release()
});
});
This worked perfectly for me with codepush, for android.
Guys! Does anyone have any solution???
Is there a solution for this? I have mp3 in npm dependency, and its not working after codepush release (works perfectly with apk).
Platform: Android
:beetle: Description
Similar to #643 but iPhone works fine.
Sound plays on normal build. After any
react-native-code-push
update, the iPhone app continues to work fine but the Android app is no longer able to find the file. This happens even in updates unrelated toreact-native-sound
.:beetle: What is the observed behavior?
On Android, after any code push update,
react-native-sound
returns error{code: -1, message: "resource not found"}
.:beetle: What is the expected behavior?
No error.
:beetle: Please post your code:
and
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
Additional comment
Exact same behavior on react-native 0.59.10 + react-native-code-push 5.7.0. Likely same issue. Same behavior both when using absolute and relative paths.