CRAlpha / CRAlpha/react-native-wkwebview

Ability to handle cases of urls with 'mailto' and 'tel' schemes.

Open
#101 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Objective-C
Stars
637
Forks
263
PR merge metrics
No merged PRs in 30d

Description

Clicking on links with schemes like 'mailto' and 'tel' causes an unsupported URL error (`NSURLErrorDomain`, error code: `-1002`).

Trying to handle these cases in `onShouldStartLoadWithRequest` does not always work due the restriction on returning before 250ms. This does not work if I tap different links in rapid succession.

[WKURLSchemeHandler](https://developer.apple.com/documentation/webkit/wkurlschemehandler) seems to be the right approach to handle this. Could we expose a prop for this?

Is there a better approach already available?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.