{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1033","labels_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1033/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1033/comments","events_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1033/events","html_url":"https://github.com/NativeScript/NativeScript/issues/1033","id":114947000,"number":1033,"title":"Connectivity modules requires ACCESS_NETWORK_STATE permission on Android","user":{"login":"lscown","id":5018471,"avatar_url":"https://avatars.githubusercontent.com/u/5018471?v=3","gravatar_id":"","url":"https://api.github.com/users/lscown","html_url":"https://github.com/lscown","followers_url":"https://api.github.com/users/lscown/followers","following_url":"https://api.github.com/users/lscown/following{/other_user}","gists_url":"https://api.github.com/users/lscown/gists{/gist_id}","starred_url":"https://api.github.com/users/lscown/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lscown/subscriptions","organizations_url":"https://api.github.com/users/lscown/orgs","repos_url":"https://api.github.com/users/lscown/repos","events_url":"https://api.github.com/users/lscown/events{/privacy}","received_events_url":"https://api.github.com/users/lscown/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-04T01:14:41Z","updated_at":"2015-11-04T08:54:00Z","closed_at":null,"body":"The connectivity module requires the ACCESS_NETWORK_STATE permission on Android. It should be initially set within the AndroidManifest.xml when you create the application as this is a core module.\r\n\r\nwithin the manifest it should contain:\r\n```xml\r\n<uses-permission android:name=\"android.permission.ACCESS_NETWORK_STATE\"/>\r\n```\r\n\r\njs:\r\n```js\r\nvar connectivity = require(\"connectivity\");\r\nif (connectivity.getConnectionType() === connectivity.connectionType.none) {\r\n    console.log(\"No connection\");\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/NativeScript/NativeScript/issues/comments/153643542","html_url":"https://github.com/NativeScript/NativeScript/issues/1033#issuecomment-153643542","issue_url":"https://api.github.com/repos/NativeScript/NativeScript/issues/1033","id":153643542,"user":{"login":"vakrilov","id":4092076,"avatar_url":"https://avatars.githubusercontent.com/u/4092076?v=3","gravatar_id":"","url":"https://api.github.com/users/vakrilov","html_url":"https://github.com/vakrilov","followers_url":"https://api.github.com/users/vakrilov/followers","following_url":"https://api.github.com/users/vakrilov/following{/other_user}","gists_url":"https://api.github.com/users/vakrilov/gists{/gist_id}","starred_url":"https://api.github.com/users/vakrilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vakrilov/subscriptions","organizations_url":"https://api.github.com/users/vakrilov/orgs","repos_url":"https://api.github.com/users/vakrilov/repos","events_url":"https://api.github.com/users/vakrilov/events{/privacy}","received_events_url":"https://api.github.com/users/vakrilov/received_events","type":"User","site_admin":false},"created_at":"2015-11-04T08:54:00Z","updated_at":"2015-11-04T08:54:00Z","body":"@lscown Thanks for noting that. \r\nHowever, this is actually intended as noted in [the documentation](https://docs.nativescript.org/ApiReference/connectivity/README.html). The permission is not included by default because not all applications will need it. So if you are using this module you should add the permission manually"}}