I'm developing an app with react-native-webview.
And when I click a link with
<a href="sms:888888&body=Test Message">Click here</a>
I'm receiving error err_unknown_url_scheme.
Thanks
I was getting error regarding "mailto: and tel: links do not work in webview" and for my situation the fix was to adding this property in webview:
<WebView
// other props here
originWhitelist={['http://*', 'https://*', 'intent://*']}
/>
Able to solve the problem by editting the webview parameters.
<WebView
{...this.props}
bounces={false}
originWhitelist={["https://*", "http://*", "file://*", "sms://*"]}
allowFileAccess={true}
domStorageEnabled={true}
javaScriptEnabled={true}
geolocationEnabled={true}
saveFormDataDisabled={true}
allowFileAccessFromFileURLS={true}
allowUniversalAccessFromFileURLs={true}
/>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With