voice
voice copied to clipboard
Crashes after it prompts to allow Microphone access.
I'm on an iPhone 7. It first prompts to allow Speech Recognition, which I accept. Then it prompts to allow Microphone access and while it's doing that, my app just goes away. Subsequent retries just have the app close unexpectedly. It's happening when I call Voice.start('en-US').
Please help!
Thanks, Alvaro
Same here
See: https://github.com/wenkesj/react-native-voice/issues/50
I found that it was because of react-navigation, which was triggering all of the the view actions twice, as well as Voice.start() I manage to fix this problem by adding a check in the beginning of setupAndStartRecognizing to see if the session already had begun.
- (void) setupAndStartRecognizing:(NSString*)localeStr {
if(self.sessionId){
return;
}
@folofse can you send a PR for this?
I found that it was because of react-navigation, which was triggering all of the the view actions twice, as well as
Voice.start()I manage to fix this problem by adding a check in the beginning ofsetupAndStartRecognizingto see if the session already had begun.- (void) setupAndStartRecognizing:(NSString*)localeStr { if(self.sessionId){ return; }
@folofse can tou send a PR for this?
Also having this issue. We're now using a separate permissions library to avoid the crash. Is there any timeline on fixing this?