Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16143] iOS 7: Items liked with Ti.UI.AUTOLINK_ALL do not open when clicked upon

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2014-01-10T00:26:04.000+0000
Affected Version/sRelease 3.2.0
Fix Version/s2014 Sprint 01, 2014 Sprint 01 API, Release 3.2.1, Release 3.3.0
ComponentsiOS
LabelsSupportTeam, module_textarea, module_views, qe-testadded, regression
ReporterMauro Parra-Miranda
AssigneeVishal Duggal
Created2014-01-08T00:39:35.000+0000
Updated2014-02-21T07:15:26.000+0000

Description

Problem Description

When the user uses Ti.UI.AUTOLINK_ALL in the TextArea in iOS, the automated autolink will show the url and the phone in an URL fashion, and it's clickeable, but never will happen when you click on it.

Test Case

var myView = Ti.UI.createView({});
var myText= Ti.UI.createTextArea({
        value: "Mywebsite: http://mywebsite.com \n phone: 555-55-5555",
        top:15,
        left:10,
        right:10,       
        textAlign:'center',
        editable:false,
        autoLink:  Ti.UI.AUTOLINK_ALL,
        font: {fontSize:15},
        tintColor:'#9400d3',
 
    });
    alert( Ti.UI.AUTOLINK_ALL);
myView.add(myText);
var win = Ti.UI.createWindow({backgroundColor:'white'});
win.add(myView);
win.open();

Steps to reproduce

1. Create a new mobile project (Classic Titanium) with Mobile SDK 3.2.0 2. Paste the test case into app.js 3. Compile into the simulator. 4. Click on the url, won't open Safari.

Extra info

If you test this with 3.1.3.GA, it will work as expected.

Comments

  1. Vishal Duggal 2014-01-10

    Pull pending against master - https://github.com/appcelerator/titanium_mobile/pull/5203 3_2_X - https://github.com/appcelerator/titanium_mobile/pull/5204
  2. Wilson Luu 2014-01-17

  3. Wilson Luu 2014-01-21

    Closing ticket as fixed. Verified that I was able to launch the mobile Safari browser after pressing on the url link. Also, was able to verify pressing the phone number link will try to make a phone call. Tested on: Appcelerator Studio, build: 3.2.1.201401151647 SDK build: 3.2.1.v20140117222448, 3.3.0.v20140117222449 CLI: 3.2.1 (git://github.com/appcelerator/titanium.git#3_2_X) Xcode: 5.0.2 Devices: iphone 5 (6.1.3), iphone 5 (7.0.2), iphone simulator (6.1), iphone simulator (7.0.3)

JSON Source