Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Nuno_A_
New Contributor I
3,979 Views

Open Links - tel: and mailto: err_unknown_url_scheme

Hi, 

I am using Intel XDK + Cordova 

I use the plugin "InAppBrowser" to open an external website that I developed with Framework7. 

On the contacts have links tel: and mailto: but when I click appears the error page "err_unknown_url_scheme" 

How can I solve this problem?

Tags (2)
0 Kudos
4 Replies
PaulF_IntelCorp
Employee
3,979 Views

Confirm first that you can use those links from within your app, not within the inAppBrowser view. I believe the inAppBrowser view is a restricted view, for app and device security, since it is meant to render HTML5 from anywhere on the planet. In which case it will not work. Also, make sure that your whitelist is configured to allow those intents, that may be the problem.

Amrita_C_Intel
Employee
3,979 Views

Hello,

Which XDK version are you using?

Building for which Platform?

Running on Emulator or on device?

Can you provide some screenshots?

 

Nuno_A_
New Contributor I
3,979 Views

Intel XDK 2893

Cordova cli 5.1.1.

The external website use Framework7.

The problem only happens when I use links (tel :, mailto :) on the external site.

The links opens the respective functions. But underneath always appears the error webpage like this - http://mariusbancila.ro/blog/wp-content/uploads/2015/09/ERR_UNKNOWN_URL_SCHEME.png

If you use these links within the app does not appear the error page.

(Sorry my English.)

PaulF_IntelCorp
Employee
3,979 Views

Nuno, if you use _self as the target AND include the location you are opening in the white list, it will probably work. See the doc page here > https://github.com/apache/cordova-plugin-inappbrowser#cordovainappbrowseropen

Another option is to use _system as the target (see the doc link above).

Reply