{ "id": "86695", "key": "TIMOB-7719", "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": "2017-06-09T16:58:20.000+0000", "created": "2012-02-18T12:40:44.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-09T16:58:20.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": "10224", "name": "TiAPI", "description": "This component is used for cross-platform API work. Specifications are most likely to use this component." } ], "description": "h2. Problem\r\n\r\nDespite being documented, [Titanium.Network.address|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Network.address-property.html] is undefined whereas [Titanium.Platform.address|http://developer.appcelerator.com/apidoc/mobile/latest/Titanium.Platform.address-property.html] returns valid IP address (when wifi connected).\r\n\r\nI cannot find an address property in the Network source files.\r\n\r\nThe same results are returned on both iOS and Android.\r\n\r\nWould it be best to fix this property, and remove the Platform property, along with other network-specific functionality?\r\n\r\n\r\nh2. Test case\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.API.info('Ti.Network.address: ' + Ti.Network.address);\r\nTi.API.info('Ti.Platform.address: ' + Ti.Platform.address);\r\n{code}\r\n\r\nh2. Logs\r\n\r\n{code:lang=none|title=console}\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (3.26 seconds)\r\n[DEBUG] executing command: xcodebuild -version\r\n[DEBUG] Xcode 4.2\r\n[DEBUG] Build version 4C199\r\n[INFO] Found 5.0 patch installed\r\n[INFO] Application started\r\n\r\n[DEBUG] reading stylesheet from: /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/AAB162AA-6658-4193-91FF-BC6B795345CA/testing11.app/stylesheet.plist\r\n\r\n[INFO] testing11/1.0 (1.8.1.a24502a)\r\n\r\n[DEBUG] Analytics is enabled = YES\r\n\r\n[DEBUG] loading: /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/AAB162AA-6658-4193-91FF-BC6B795345CA/testing11.app/app.js, resource: app_js\r\n\r\n[INFO] Ti.Network.address: undefined\r\n\r\n[INFO] Ti.Platform.address: 192.168.1.104\r\n{code}", "attachment": [], "flagged": false, "summary": "Ti.API: Network.address is undefined", "creator": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "environment": "* Titanium Mobile 1.8.1\r\n* Android 2.2 / iOS5\r\n* Emulator / Simulator", "comment": { "comments": [ { "id": "421646", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed, any problems please open a new ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-06-09T16:58:20.000+0000", "updated": "2017-06-09T16:58:20.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }