zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 747 forks source link

Sound file not getting played when there is space in application name. Got error - "The operation couldn’t be completed. (OSStatus error -10875.)" #676

Closed Girishav closed 4 years ago

Girishav commented 4 years ago

:beetle: Sound file not getting played when there is space in iOS application name.Got following error "The operation couldn’t be completed. (OSStatus error -10875.)"

This issue happening for only iOS.

React native ver : 0.61.4

HossamSamir commented 4 years ago

same

reza-madani commented 4 years ago

https://github.com/zmxv/react-native-sound/issues/304#issuecomment-609375045

new Sound( 'fileName', encodeURIComponent(Sound.MAIN_BUNDLE), error => {} )

This worked for me

Girishav commented 4 years ago

Thank you @rezareact. your suggestion worked for me.