{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/451","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/451/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/451/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/451/events","html_url":"https://github.com/NativeScript/NativeScript/issues/451","id":95464619,"number":451,"title":"Improve the Network Stack","user":{"login":"chadcampbell","id":5507793,"avatar_url":"https://avatars.githubusercontent.com/u/5507793?v=3","gravatar_id":"","url":"https://api.github.com/users/chadcampbell","html_url":"https://github.com/chadcampbell","followers_url":"https://api.github.com/users/chadcampbell/followers","following_url":"https://api.github.com/users/chadcampbell/following{/other_user}","gists_url":"https://api.github.com/users/chadcampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/chadcampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadcampbell/subscriptions","organizations_url":"https://api.github.com/users/chadcampbell/orgs","repos_url":"https://api.github.com/users/chadcampbell/repos","events_url":"https://api.github.com/users/chadcampbell/events{/privacy}","received_events_url":"https://api.github.com/users/chadcampbell/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/4%20-%20Ready%20For%20Test","name":"4 - Ready For Test","color":"bfd4f2"},{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/P:5","name":"P:5","color":"d4c5f9"},{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/S:Medium","name":"S:Medium","color":"fbca04"},{"url":"https://api.github.com/repos/NativeScript/NativeScript/labels/T:Feature","name":"T:Feature","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":{"login":"hamorphis","id":1201857,"avatar_url":"https://avatars.githubusercontent.com/u/1201857?v=3","gravatar_id":"","url":"https://api.github.com/users/hamorphis","html_url":"https://github.com/hamorphis","followers_url":"https://api.github.com/users/hamorphis/followers","following_url":"https://api.github.com/users/hamorphis/following{/other_user}","gists_url":"https://api.github.com/users/hamorphis/gists{/gist_id}","starred_url":"https://api.github.com/users/hamorphis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamorphis/subscriptions","organizations_url":"https://api.github.com/users/hamorphis/orgs","repos_url":"https://api.github.com/users/hamorphis/repos","events_url":"https://api.github.com/users/hamorphis/events{/privacy}","received_events_url":"https://api.github.com/users/hamorphis/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/NativeScript/NativeScript/milestones/4","html_url":"https://github.com/NativeScript/NativeScript/milestones/1.3.0","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/milestones/4/labels","id":1117828,"number":4,"title":"1.3.0","description":"","creator":{"login":"valentinstoychev","id":4980822,"avatar_url":"https://avatars.githubusercontent.com/u/4980822?v=3","gravatar_id":"","url":"https://api.github.com/users/valentinstoychev","html_url":"https://github.com/valentinstoychev","followers_url":"https://api.github.com/users/valentinstoychev/followers","following_url":"https://api.github.com/users/valentinstoychev/following{/other_user}","gists_url":"https://api.github.com/users/valentinstoychev/gists{/gist_id}","starred_url":"https://api.github.com/users/valentinstoychev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentinstoychev/subscriptions","organizations_url":"https://api.github.com/users/valentinstoychev/orgs","repos_url":"https://api.github.com/users/valentinstoychev/repos","events_url":"https://api.github.com/users/valentinstoychev/events{/privacy}","received_events_url":"https://api.github.com/users/valentinstoychev/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":4,"state":"open","created_at":"2015-05-19T10:10:59Z","updated_at":"2015-07-25T01:10:48Z","due_on":"2015-09-08T21:00:00Z","closed_at":null},"comments":5,"created_at":"2015-07-16T15:50:31Z","updated_at":"2015-07-25T01:10:48Z","closed_at":"2015-07-25T01:10:48Z","body":"It would be valuable if there was a way to know more about the device's network status. For example, it would be nice if the there was a way to:\r\n\r\n* Determine if a network is available (whether you can connect or not)\r\n* Detect when there has been a change in the network that the device is connected to. "},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/124781124","html_url":"https://github.com/NativeScript/NativeScript/issues/451#issuecomment-124781124","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/451","id":124781124,"user":{"login":"chadcampbell","id":5507793,"avatar_url":"https://avatars.githubusercontent.com/u/5507793?v=3","gravatar_id":"","url":"https://api.github.com/users/chadcampbell","html_url":"https://github.com/chadcampbell","followers_url":"https://api.github.com/users/chadcampbell/followers","following_url":"https://api.github.com/users/chadcampbell/following{/other_user}","gists_url":"https://api.github.com/users/chadcampbell/gists{/gist_id}","starred_url":"https://api.github.com/users/chadcampbell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chadcampbell/subscriptions","organizations_url":"https://api.github.com/users/chadcampbell/orgs","repos_url":"https://api.github.com/users/chadcampbell/repos","events_url":"https://api.github.com/users/chadcampbell/events{/privacy}","received_events_url":"https://api.github.com/users/chadcampbell/received_events","type":"User","site_admin":false},"created_at":"2015-07-25T01:10:48Z","updated_at":"2015-07-25T01:10:48Z","body":"@hamorphis \r\n\r\nThank you for tackling this. I reviewed the code and the sample app. From what I could tell, you added\r\n```\r\nconnectivity.connectionType.none\r\nconnectivity.connectionType.wifi\r\nconnectivity.connectionType.mobile\r\n```\r\nThis is a great start to the connectivity module. However, it only tells the type of connection. From what I can tell, a developer still has challenges to determine if they can actually connect to the internet. I think it would be helpful if the connectivity module included:\r\n\r\n`isAvailable` - This true/false property would signal if a network connection is reachable. This property does not inform the developer if they are actually connected to the internet or not. Rather, if they can hit a network point (like a router).\r\n\r\n`isWebAvailable` - This true/false property would signal whether the app can actually reach the internet or not.\r\n\r\n`changed` - This event would fire when the IP Address that is being used changes. This would be useful for scenarios where app users are moving while using an app.\r\n\r\nThese are probably nice-to-haves at this point. I just wanted to get them down while I was thinking about them. Still, thanks for adding the connectivity module!"}}