-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tel: links throw exception #6483
Comments
To add to this - for me, any link like window.location = crashes the app on android. |
the same thing happens to me!
|
This issue may need more information before it can be addressed. In particular, it will need a reliable Code Reproduction that demonstrates the issue. Please see the Contributing Guide for how to create a Code Reproduction. Thanks! |
Repoduction is here: https://github.com/media4learning/broken-links.git npm i The problem is using window.location = "X" with X being any mailto, tel, posssibly any link Android Studio run output displays: E/AndroidRuntime: FATAL EXCEPTION: main |
Simple patch fix until it’s fixed permanently…
|
Thanks a lot. It helped! |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out. |
capacitor/android/capacitor/src/main/java/com/getcapacitor/Bridge.java
Line 386 in 9447fc3
When opening a
tel:
link, an exception is thrown.url.getHost()
can return null if no host is found, and.equals()
is being called without a check for null.The text was updated successfully, but these errors were encountered: