Jean-Marc Girard created CB-7711:
------------------------------------
Summary: 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: [email protected]
For additional commands, e-mail: [email protected]