{ "id": "61018", "key": "TIMOB-386", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2011-04-15T02:28:28.000+0000", "created": "2011-04-15T02:28:27.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "ios", "iphone", "number", "phone" ], "versions": [], "issuelinks": [], "assignee": { "name": "nwright", "key": "nwright", "displayName": "Nolan Wright", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T21:16:32.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "{html}
Here's the code I am using:
\n
\n
\n
\nfunction helloJS(){
\ndocument.getElementById('table0').innerHTML='';\ndocument.getElementById('table0').innerHTML+=Titanium.Platform.model;\ndocument.getElementById('table0').innerHTML+=\"<br>\";\ndocument.getElementById('table0').innerHTML+=Titanium.Platform.version;\ndocument.getElementById('table0').innerHTML+=\"<br>\";\ndocument.getElementById('table0').innerHTML+=Titanium.Platform.availableMemory;\ndocument.getElementById('table0').innerHTML+=\"<br>\";\ndocument.getElementById('table0').innerHTML+=Titanium.Platform.ostype;\ndocument.getElementById('table0').innerHTML+=\"<br>\";\ndocument.getElementById('table0').innerHTML+=Titanium.Platform.architecture;\ndocument.getElementById('table0').innerHTML+=\"<br>\";\ndocument.getElementById('table0').innerHTML+=Titanium.Platform.phoneNumber;\ndocument.getElementById('table0').innerHTML+=\"<br>\";
\n
\n}
\n
\n
I compiled and installed the app on my iphone and I get the\nfollowing output:
\niPhone 3GS
\n3.1.2
\n9.6171875
\n32bit
\narm
\nundefined
So, apparently, all properties under Titanium.Platform work fine\nEXCEPT phoneNumber.
\nThe simulator shows the same result.
\nIs there anybody experiencing the same issue?
We do not support Ti.Platform.phoneNumber, never have, probably\nnever will. In fact, getting the phone number from device can lead\nto app rejection.