Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-14752] Android: Telephone numbers in WebView are not getting auto linked

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2017-10-11T16:34:02.000+0000
Affected Version/sRelease 3.1.1, Release 3.2.0
Fix Version/s2013 Sprint 17, 2013 Sprint 17 API, 6.2.2
ComponentsAndroid
LabelsSupportTeam, android, ipa, ipass1, parity
ReporterShalini Kushwaha
AssigneeSunila
Created2013-08-02T11:47:40.000+0000
Updated2018-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();

Comments

  1. Daniel Sefton 2013-08-02

    Tested and confirmed on Samsung Galaxy S2 Android 2.3.6 with Ti SDK 3.1.1 GA and 3.2 CI.
  2. Daniel Sefton 2013-08-05

    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.
  3. Sunila 2013-08-10

    For android to detect this as phone number, format it properly. Change the number to 0 800 111 9999: and it should work.
  4. Sunila 2013-08-10

    Format the phone number properly for Android to detect it as phone number. Something like 0 800 111 9999: or use the tel: tag.
  5. Shalini Kushwaha 2013-08-12

    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.
  6. Eric Merriman 2017-03-28

    Closing
  7. Ricardo Ramirez 2017-10-11

    Changing to private by customer request
  8. Eric Merriman 2018-08-06

    Cleaning up older fixed issues. If this issue should not have been closed as fixed, please reopen.

JSON Source