react-native-voice / voice

:microphone: React Native Voice Recognition library for iOS and Android (Online and Offline Support)
MIT License
1.79k stars 478 forks source link

Android works fine, iOS doesn't #59

Open xavicolomer opened 6 years ago

xavicolomer commented 6 years ago

Hi there!

First, congratulations this library looks really cool. Good work!

I have problems in iOS though.

  1. The simulator crashes on the demo when tapping in the Start Button and closes
  2. The device has a more weird error:

"Failed to load bundle" with error (Error reading bundle) ... main.jsbundle(null)

Any ideas?

pacheights commented 6 years ago

I find myself having the same issue.

alvaro1728 commented 6 years ago

I was having similar problems until I added this to the Info.plist:

<key>NSSpeechRecognitionUsageDescription</key>
<string>Allow MySuperAwesomeApp to use speech recognition</string>
ohtangza commented 6 years ago

I think the more detailed error message is required to address this issue. Can you provide more info? react-native log-ios might help you.

joseph-allen commented 6 years ago

I am having this issue as well, It is very hard to get the demos of this project up and running let alone build an App around them.

I am not getting an Error message, clicking the Start Recognizing button in the ios demo causes the simluator to lock up.

nikodunk commented 6 years ago

Hey!

It eventually turned out to be an issue with the permissions. Get all your permissions set up, restart the simulator on a fresh phone (change the simulator model), and it should ask you for permission.

Hope that helps!

On Wed, Jul 11, 2018 at 6:01 AM Joseph Allen notifications@github.com wrote:

I am having this issue as well, It is very hard to get the demos of this project up and running let alone build an App around them.

I am not getting an Error message, clicking the Start Recognizing button in the ios demo causes the simluator to lock up.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wenkesj/react-native-voice/issues/59#issuecomment-404160606, or mute the thread https://github.com/notifications/unsubscribe-auth/AT6h1XsdSYmo8pvjhKvPVQsIkzhTPVM7ks5uFfc_gaJpZM4RjMJH .

joseph-allen commented 6 years ago

adding

<key>NSSpeechRecognitionUsageDescription</key>
<string>Allow MySuperAwesomeApp to use speech recognition</string>

to my ios/ProjectName/Info.plist did it for me!

joseph-allen commented 6 years ago

something to point out, this was an unintuitive step in the setup and was only resolved by finding this issue.

nikodunk commented 6 years ago

Great job! That was it :)

On Wed, Jul 11, 2018 at 10:03 AM Joseph Allen notifications@github.com wrote:

something to point out, this was an unintuitive step in the setup and was only resolved by finding this issue.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wenkesj/react-native-voice/issues/59#issuecomment-404242020, or mute the thread https://github.com/notifications/unsubscribe-auth/AT6h1REk2OU61PWjf97uiz1q9oclQY3iks5uFi_hgaJpZM4RjMJH .

joseph-allen commented 6 years ago

to resolve for others the above should probably be added to the README no? happy to do it!

sonlexqt commented 6 years ago

It's already included in the README but the section doesn't catch a lot of attention tbh https://github.com/wenkesj/react-native-voice#permissions

lfoliveir4 commented 4 years ago

@xavicolomer Did you solved your problem?

adamgusky commented 2 months ago

For me, the issue was that I didn't realize there were 2 plist files... I initially added it to the test plist.