{"action":"opened","issue":{"url":"https://api.github.com/repos/codechix/e-mission-data-collection/issues/1","repository_url":"https://api.github.com/repos/codechix/e-mission-data-collection","labels_url":"https://api.github.com/repos/codechix/e-mission-data-collection/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/codechix/e-mission-data-collection/issues/1/comments","events_url":"https://api.github.com/repos/codechix/e-mission-data-collection/issues/1/events","html_url":"https://github.com/codechix/e-mission-data-collection/issues/1","id":138079025,"number":1,"title":"Switch to dynamic permissions on android","user":{"login":"shankari","id":2423263,"avatar_url":"https://avatars.githubusercontent.com/u/2423263?v=3","gravatar_id":"","url":"https://api.github.com/users/shankari","html_url":"https://github.com/shankari","followers_url":"https://api.github.com/users/shankari/followers","following_url":"https://api.github.com/users/shankari/following{/other_user}","gists_url":"https://api.github.com/users/shankari/gists{/gist_id}","starred_url":"https://api.github.com/users/shankari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shankari/subscriptions","organizations_url":"https://api.github.com/users/shankari/orgs","repos_url":"https://api.github.com/users/shankari/repos","events_url":"https://api.github.com/users/shankari/events{/privacy}","received_events_url":"https://api.github.com/users/shankari/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-03T05:19:26Z","updated_at":"2016-03-03T05:19:26Z","closed_at":null,"body":"Since Android 6.0 (marshmallow), the android system prompts for \"dangerous\" permissions at runtime. We use the location permission, which is dangerous.\r\n\r\nSo we need to switch to dynamic permissions and ensure that we don't crash if the permission is not granted.\r\n\r\nWe are building this app using apache cordova. So you need to follow the instructions for requesting location access (and any other dangerous permissions that are currently in plugin.xml). These instructions are in the cordova android plugin documentation.\r\nhttps://cordova.apache.org/docs/en/6.0.0/guide/platforms/android/plugin.html\r\n\r\nThen you need to update the API version, test the changes and make sure that the app does not crash."}}