[TIMOB-14752] Android: Telephone numbers in WebView are not getting auto linked
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2017-10-11T16:34:02.000+0000 |
Affected Version/s | Release 3.1.1, Release 3.2.0 |
Fix Version/s | 2013 Sprint 17, 2013 Sprint 17 API, 6.2.2 |
Components | Android |
Labels | SupportTeam, android, ipa, ipass1, parity |
Reporter | Shalini Kushwaha |
Assignee | Sunila |
Created | 2013-08-02T11:47:40.000+0000 |
Updated | 2018-08-06T17:49:38.000+0000 |
Description
*Problem*
Telephone numbers (inside html content) are not getting autoLinked in Android. But it is working on iOS.
Numbers are not auto linked after using "format-detection" meta tag either.
<meta name="format-detection" content="telephone=yes">
*Test case*
var win = Titanium.UI.createWindow({
backgroundColor : '#fff'
});
var html = "<head><body><h3>hello:</h3><ul><li>Call immediately on 0800 111 999:</li></ul></body></head>";
var webView = Ti.UI.createWebView({
height : Ti.UI.FILL,
width : Ti.UI.FILL,
html : html
});
win.add(webView);
win.open();
Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1.1 GA and 3.2 CI.
Tested on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 2.1.4 GA, 3.0.0 GA, 3.0.2 GA and 3.1 GA. - No telephone auto link in any.
For android to detect this as phone number, format it properly. Change the number to 0 800 111 9999: and it should work.
Format the phone number properly for Android to detect it as phone number. Something like 0 800 111 9999: or use the tel: tag.
When phone number is formatted as 0 800 111 9999, detection is working as phone number but still not showing as autolink(color) in UI. However in iOS, it is displayed as blue color link. The phone number is coming as content in html file.It should be handled on back end side.
Closing
Changing to private by customer request
Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.