cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-8180) InAppBrowser tries to open for web page for tel url
Date Fri, 22 Jan 2016 14:52:39 GMT

    [ https://issues.apache.org/jira/browse/CB-8180?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112486#comment-15112486
] 

ASF GitHub Bot commented on CB-8180:
------------------------------------

Github user jcesarmobile commented on the pull request:

    https://github.com/apache/cordova-plugin-inappbrowser/pull/136#issuecomment-173940439
  
    @falkobuttler it has been reported https://issues.apache.org/jira/browse/CB-10407
    For now you can keep using the old version of the plugin until this is fixed and released


> InAppBrowser tries to open for web page for tel url
> ---------------------------------------------------
>
>                 Key: CB-8180
>                 URL: https://issues.apache.org/jira/browse/CB-8180
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Plugin InAppBrowser
>    Affects Versions: 3.5.0
>            Reporter: Henry Smith
>            Assignee: Joe Bowser
>            Priority: Minor
>              Labels: Android, Triaged
>
> I use InapBrowser to open site which has some buttons containing with href="tel:somenumber"
> The app opens the phone and the number is there, I think a DIAL intent is used. However
after hanging up the phone you get the message that teh page "tel:somenumber" could not be
opened.
> By adding this code in the InappBrowser, I get the wanted behaviour
>   @Override
>         public boolean shouldOverrideUrlLoading(WebView view, String url) {
>             if (url.startsWith(WebView.SCHEME_TEL)) { 
>                     Intent intent = new Intent(Intent.ACTION_CALL,
>                             Uri.parse(url)); 
>                     cordova.getActivity().startActivity(intent); 
>                     return true;
>             }
>             return false;
>         }



--
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


Mime
View raw message