{ "id": "134596", "key": "TIMOB-17495", "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": null, "resolutiondate": null, "created": "2014-08-12T18:42:37.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "ios", "network" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:11.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "We are using the Ti.Network.online to check of data connection exist (does not matter if it is data, Wifi or other) usually this has been reliable, but now it returns true most of the time or actually presently all the time... We have seen this both in Sim and Device (iPhone5, iOS 7) \r\n\r\nWe also tried the change event and just print the object returned, it says online even without any data contact\r\n\r\nWe are critically depending on this and it is a blocker for app deploy, can you please help? \r\n\r\nI used this code in alloy.js\r\n\r\n{code}\r\nTi.Network.addEventListener('change', function(e) {\r\n\tTi.API.info('NETWORK STAT: ' + JSON.stringify(e));\r\n\tTi.API.info('NETWORK : ' + e.online + ' type: ' + e.networkType);\r\n //7networkIsOnline = e.online;\r\n //networkType = e.networkType;\r\n});\r\n{code}\r\n\r\nand got this result:\r\n\r\nNETWORK STAT: {\"online\":true,\"networkType\":1,\"networkTypeName\":\"WIFI\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] : NETWORK : true type: 1\r\n[INFO] : NETWORK STAT: {\"online\":true,\"networkType\":1,\"networkTypeName\":\"WIFI\",\"bubbles\":true,\"type\":\"change\",\"source\":{},\"cancelBubble\":false}\r\n[INFO] : NETWORK : true type: 1\r\n\r\nthis is a off and on switching of the network... and as you can see it remains true!!\r\n\r\nPlease help", "attachment": [ { "id": "50421", "filename": "alloy.js", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T18:42:37.000+0000", "size": 624, "mimeType": "text/javascript" }, { "id": "50422", "filename": "index.js", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T18:42:37.000+0000", "size": 104, "mimeType": "text/javascript" }, { "id": "50423", "filename": "Online.mov", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T18:42:37.000+0000", "size": 4847322, "mimeType": "video/quicktime" } ], "flagged": false, "summary": "Ti.Network.online and change events do not work reliably", "creator": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "SDK 3.2.3, iOS 7.1, ", "comment": { "comments": [ { "id": "318254", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Can you please try this in 3.3.0.GA as we changed iOS networking? I'm curious if this makes a difference.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-12T19:20:46.000+0000", "updated": "2014-08-12T19:20:46.000+0000" }, { "id": "329791", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Customer finally responded. They continue to encounter this on 3.3.0.GA.\r\nThey also claim they encounter this on 3.4.0.GA, although I am unable to reproduce it there:\r\n\r\niPhone 6, iOS 8.0 & iPhone 5 Sim, iOS 8.0 & iPhone 5S Sim, iOS 7.1\r\nTitanium SDK 3.4.0.GA\r\nStudio 3.4.0", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-10-28T17:51:12.000+0000", "updated": "2014-10-28T17:53:48.000+0000" }, { "id": "343505", "author": { "name": "pablotango", "key": "pablotango", "displayName": "paolo mosca", "active": true, "timeZone": "Europe/Berlin" }, "body": "the problem persist in 3.5.0:\r\n\r\njust try this steps with this code in alloy.js\r\n\r\nTi.Network.addEventListener( 'change', function( e ) {\r\n\tTi.API.info(e);\r\n} );\r\n\r\n1st step:\r\nwifi connection active : network = wifi\r\n2nd\r\nwifi connection disabled and mobile network active -> network = mobile\r\n3rd\r\nairport mode active -> network for a second is NONE with online false then change to MOBILE and online true\r\n\r\n", "updateAuthor": { "name": "pablotango", "key": "pablotango", "displayName": "paolo mosca", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-02-16T15:36:15.000+0000", "updated": "2015-02-16T15:36:32.000+0000" }, { "id": "433887", "author": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm still seeing issues in 6.3.0 GA", "updateAuthor": { "name": "jceaser", "key": "jceaser", "displayName": "Joshua A. Ceaser", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-01-31T17:14:46.000+0000", "updated": "2018-01-31T17:14:46.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }