[TIMOB-386] Local phone number issue: Titanium.Platform.phoneNumber does not work (ver 0.8.2)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2011-04-15T02:28:28.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | ios, iphone, number, phone |
Reporter | combwattle |
Assignee | Nolan Wright |
Created | 2011-04-15T02:28:27.000+0000 |
Updated | 2017-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?
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.
Closing ticket as invalid.