sunboykenneth / react-native-voicebox-speech-rec

A powerful speech recognition library for React Native applications, enabling real-time speech-to-text transcription.
MIT License
16 stars 2 forks source link

add script html and change ios webview src(#7) #9

Open lym3074 opened 1 month ago

lym3074 commented 1 month ago

related : #7 User permission check has failed

I have found that when bare HTML is embedded inside a WebView source, the navigator's mediaDevices property is unavailable.

This appears to be an issue related to cross-browser compatibility. I have observed that changing the source to a URI path resolves the issue and allows the functionality to work correctly

so I have changed the way to get the src of the IOS WebView.

You will need to change the source of SpeechRecView.js within the node modules in the same way as I did