You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Andrew Grieve (JIRA)" <ji...@apache.org> on 2015/03/06 03:34:38 UTC
[jira] [Resolved] (CB-7711) URI "tel" sheme no more supported
[ https://issues.apache.org/jira/browse/CB-7711?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andrew Grieve resolved CB-7711.
-------------------------------
Resolution: Not a Problem
> URI "tel" sheme no more supported
> ----------------------------------
>
> Key: CB-7711
> URL: https://issues.apache.org/jira/browse/CB-7711
> Project: Apache Cordova
> Issue Type: Bug
> Components: Android
> Affects Versions: 3.6.3
> Environment: Android
> Reporter: Jean-Marc Girard
> Priority: Minor
>
> The "tel" URL sheme no longer work in 3.6.3 (work fine in 3.4)
> <a class="souligne" href="tel:+3271316116">071 31 61 16</a>
> Issue temporary fixed by adding patch in CordovaUriHelper.java
> boolean shouldOverrideUrlLoading(WebView view, String url) {
>
> // If dialing phone (tel:5551212) $$ JMG
> if (url.startsWith(WebView.SCHEME_TEL)) {
> try {
> Intent intent = new Intent(Intent.ACTION_DIAL);
> intent.setData(Uri.parse(url));
> this.cordova.getActivity().startActivity(intent);
> } catch (android.content.ActivityNotFoundException e) {
> LOG.e(TAG, "Error dialing " + url + ": " + e.toString());
> }
> }
>
> // Give plugins the chance to handle the url
> if (this.appView.pluginManager.onOverrideUrlLoading(url)) {
> // Do nothing other than what the plugins wanted.
> // If any returned true, then the request was handled.
> return true;
> }
> ....
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org