{ "id": "122589", "key": "AC-1965", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2013-11-20T01:23:12.000+0000", "created": "2013-11-18T15:11:57.000+0000", "labels": [ "4s", "data", "dev-investigate", "ios7", "network" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:40:54.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": [], "description": "Using \u0010{code} \r\nif (Titanium.Network.networkType === Titanium.Network.NETWORK_NONE) {\r\n return false;\r\n}\r\nelse {\r\n return true;\r\n}\r\n{code}\r\n\r\nor \r\n{code}\r\nif (Titanium.Network.online) {\r\n return true;\r\n}\r\nelse {\r\n return false;\r\n}\r\n{code}\r\n\r\nAlways returns false on the iPhone 4S running iOS 7\r\n\r\nFunctions as expected on iPhone 5 on iOS 7 and Android.", "attachment": [], "flagged": false, "summary": "iOS7: iPhone 4S mobile data only reports no data connection", "creator": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "280154", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "Which Titanium SDK version are you using?", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2013-11-19T12:25:24.000+0000", "updated": "2013-11-19T12:25:24.000+0000" }, { "id": "280155", "author": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Titanium Studio, build: 3.1.4.201310171935\nTitanium SDK 3.1.3.GA\n\nSorry forgot to add this initially\n", "updateAuthor": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-19T12:46:51.000+0000", "updated": "2013-11-19T12:46:51.000+0000" }, { "id": "280156", "author": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "none issue, someone had disabled data for the app specifically in settings on the development phone, so sorry", "updateAuthor": { "name": "anvil_martin", "key": "anvil_martin", "displayName": "Martin Williamson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-11-19T13:00:09.000+0000", "updated": "2013-11-19T13:00:09.000+0000" }, { "id": "280280", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Tested with iPhone 4S and iOS 7.0.4\r\n\r\nCannot reproduce:\r\n{code}\r\n[INFO] Titanium.Network.online\r\n[INFO] 1\r\n[INFO] Titanium.Network.networkType === Titanium.Network.NETWORK_NONE\r\n[INFO] 0\r\n{code}\r\n\r\nUsed this code:\r\n{code}\r\nvar w = Ti.UI.createWindow({\r\n backgroundColor: \"#e1e1e1\"\r\n});\r\n \r\nvar btn = Ti.UI.createButton({\r\n title: 'connected?'\r\n})\r\nw.add(btn);\r\n\r\nvar x = 0;\r\nbtn.addEventListener('click', function(){\r\n if(x % 2) {\r\n Ti.API.info('Titanium.Network.networkType === Titanium.Network.NETWORK_NONE');\r\n Ti.API.info(Titanium.Network.networkType === Titanium.Network.NETWORK_NONE);\r\n if (Titanium.Network.networkType === Titanium.Network.NETWORK_NONE) {\r\n alert(false);\r\n }\r\n else {\r\n alert(true);\r\n }\r\n } else {\r\n Ti.API.info('Titanium.Network.online');\r\n Ti.API.info(Titanium.Network.online);\r\n if (Titanium.Network.online) {\r\n alert(true);\r\n }\r\n else {\r\n alert(false);\r\n }\r\n }\r\n x++;\r\n});\r\n\r\nw.open();\r\n{code}", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-11-20T01:23:12.000+0000", "updated": "2013-11-20T01:23:12.000+0000" }, { "id": "280628", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Closed as per Martin's comment about disabling the data in the device. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2013-11-21T23:31:40.000+0000", "updated": "2013-11-21T23:31:40.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }