Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-8049] iOS: Titanium.Locale.formatTelephoneNumber returns error.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2012-03-27T15:25:42.000+0000
Affected Version/sRelease 2.0.0
Fix Version/sn/a
ComponentsiOS
Labelsn/a
ReporterDevang Gandhi
AssigneeNeeraj Gupta
Created2012-03-15T21:22:32.000+0000
Updated2017-03-09T23:07:13.000+0000

Description

When Titanium.Locale.formatTelephoneNumber is used, it shows an exception with a message which says, "Result of expression 'Titanium.Locale.formatTelephoneNumber' [undefined] is not a function."; It works well on android. Expected behavior: Titanium.Locale.formatTelephoneNumber(+123456789) should return +1-234-567-890
var win = Ti.UI.createWindow({

backgroundColor:'white'
});
var button = Titanium.UI.createButton({
   title: 'Hello',
   top: 10,
   width: 100,
   height: 50
});

win.add(button);

button.addEventListener('click',function(e)
{
   var t = Titanium.Locale.formatTelephoneNumber("+1234567890");
   Ti.API.info(t);
});


win.open();


Comments

  1. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source