Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7719] Ti.API: Network.address is undefined

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionInvalid
Resolution Date2017-06-09T16:58:20.000+0000
Affected Version/sRelease 1.8.1
Fix Version/sn/a
ComponentsTiAPI
Labelsn/a
ReporterPaul Dowsett
AssigneeEric Merriman
Created2012-02-18T12:40:44.000+0000
Updated2017-06-09T16:58:20.000+0000

Description

Problem

Despite 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). I cannot find an address property in the Network source files. The same results are returned on both iOS and Android. Would it be best to fix this property, and remove the Platform property, along with other network-specific functionality?

Test case

Ti.API.info('Ti.Network.address: ' + Ti.Network.address);
Ti.API.info('Ti.Platform.address: ' + Ti.Platform.address);

Logs

[INFO] Launching application in Simulator
[INFO] Launched application in Simulator (3.26 seconds)
[DEBUG] executing command: xcodebuild -version
[DEBUG] Xcode 4.2
[DEBUG] Build version 4C199
[INFO] Found 5.0 patch installed
[INFO] Application started

[DEBUG] reading stylesheet from: /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/AAB162AA-6658-4193-91FF-BC6B795345CA/testing11.app/stylesheet.plist

[INFO] testing11/1.0 (1.8.1.a24502a)

[DEBUG] Analytics is enabled = YES

[DEBUG] loading: /Users/dowsep/Library/Application Support/iPhone Simulator/5.0/Applications/AAB162AA-6658-4193-91FF-BC6B795345CA/testing11.app/app.js, resource: app_js

[INFO] Ti.Network.address: undefined

[INFO] Ti.Platform.address: 192.168.1.104

Comments

  1. Lee Morris 2017-06-09

    Closing ticket due to time passed, any problems please open a new ticket.

JSON Source