[TIMOB-15994] Titanium.UI.AUTOLINK_PHONE_NUMBERS not working on android >= 4.3
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Open |
Resolution | Unresolved |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android |
Reporter | Ibrahim Bakayoko |
Assignee | Unknown |
Created | 2013-12-11T13:26:42.000+0000 |
Updated | 2018-02-28T20:04:00.000+0000 |
Description
autoLink property on the label is not working on android >= 4.3
var win1 = Titanium.UI.createWindow({
backgroundColor : '#fff'
});
var label2 = Titanium.UI.createLabel({
color : '#999',
text : '800900800',
autoLink : Titanium.UI.AUTOLINK_PHONE_NUMBERS,
font : {
fontSize : 20,
fontFamily : 'Helvetica Neue'
},
textAlign : 'center',
width : 'auto'
});
win1.add(label2);
win1.open();
Clicking on the label "800900800" should open the phone dialer.
Code working has expected on android <= 4.2 but not working on android >= 4.3
I can reproduce this issue with Titanium 3.1.3 SDK. Sample code provided here works fine with Android 4.0.4 simulator but not with Android 4.4.0 simulator.
Issue reproduces Titanium SDK version 3.4.0 master, 3.1.3.v20130908095038 Titanium Studio, build: 3.3.0.201407100905 Titanium Command-Line Interface CLI version 3.3.0, Android device : Motorola Moto G, Android version : 4.4.4
According to this post: http://stackoverflow.com/questions/21538201/androidautolink-not-working-fully-on-my-4-4-device Phone numbers with 10 digits or above and having a '+' sign in the beginning will works. It works for me on both Android version from 4.0 to 4.4.x