Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-386] Local phone number issue: Titanium.Platform.phoneNumber does not work (ver 0.8.2)

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionInvalid
Resolution Date2011-04-15T02:28:28.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
Labelsios, iphone, number, phone
Reportercombwattle
AssigneeNolan Wright
Created2011-04-15T02:28:27.000+0000
Updated2017-03-09T21:16:32.000+0000

Description

Here's the code I am using:




function helloJS(){

document.getElementById('table0').innerHTML='';
document.getElementById('table0').innerHTML+=Titanium.Platform.model;
document.getElementById('table0').innerHTML+="<br>";
document.getElementById('table0').innerHTML+=Titanium.Platform.version;
document.getElementById('table0').innerHTML+="<br>";
document.getElementById('table0').innerHTML+=Titanium.Platform.availableMemory;
document.getElementById('table0').innerHTML+="<br>";
document.getElementById('table0').innerHTML+=Titanium.Platform.ostype;
document.getElementById('table0').innerHTML+="<br>";
document.getElementById('table0').innerHTML+=Titanium.Platform.architecture;
document.getElementById('table0').innerHTML+="<br>";
document.getElementById('table0').innerHTML+=Titanium.Platform.phoneNumber;
document.getElementById('table0').innerHTML+="<br>";

}




I compiled and installed the app on my iphone and I get the following output:

iPhone 3GS
3.1.2
9.6171875
32bit
arm
undefined

So, apparently, all properties under Titanium.Platform work fine EXCEPT phoneNumber.
The simulator shows the same result.
Is there anybody experiencing the same issue?

Comments

  1. Stephen Tramer 2011-04-15

    We do not support Ti.Platform.phoneNumber, never have, probably never will. In fact, getting the phone number from device can lead to app rejection.

  2. Lee Morris 2017-03-09

    Closing ticket as invalid.

JSON Source