You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Joe Bowser (JIRA)" <ji...@apache.org> on 2014/05/13 00:38:16 UTC

[jira] [Comment Edited] (CB-6562) sms: URI scheme doesn't work with Hangouts on KitKat

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

Joe Bowser edited comment on CB-6562 at 5/12/14 10:36 PM:
----------------------------------------------------------

This sounds more like Hangouts isn't handling the SMS intent. I'll test against TextSecure.  If I can open both TextSecure and my default messages app.

Actually, on further inspection this is once again an undocumented KitKat change.  We'll get to it, but I don't know why you need this extra code for intents.


was (Author: bowserj):
This sounds more like Hangouts isn't handling the SMS intent. I'll test against TextSecure.  If I can open both TextSecure and my default messages app, I'm going to have to say that this is a Hangout bug and close this.

> sms: URI scheme doesn't work with Hangouts on KitKat
> ----------------------------------------------------
>
>                 Key: CB-6562
>                 URL: https://issues.apache.org/jira/browse/CB-6562
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: Android
>    Affects Versions: 3.4.0
>         Environment: Reproduceable on Nexus 5 (Android version 4.4.2) with stock Hangouts as only sms app.
>            Reporter: Nikolaj Hesselholt Skov
>            Assignee: Joe Bowser
>             Fix For: Master
>
>
> An URI like _"sms:12345678?body=This is a text message"_ in HTML should either launch the SMS app or show a list of apps able to handle the intent.
> On KitKat with only Hangouts installed neither of the two scenarios happen.
> The class {{org.apache.cordova.CordovaWebViewClient}} needs to have method {{shouldOverrideUrlLoading()}} changed so that URLs starting with _"sms:"_ is handled properly in KitKat and beyond. The current implementation is for pre-KitKat.
> See source on GitHub: https://github.com/apache/cordova-android/blob/master/framework/src/org/apache/cordova/CordovaWebViewClient.java#L171
> See stackoverflow answer: http://stackoverflow.com/a/20079048



--
This message was sent by Atlassian JIRA
(v6.2#6252)