{"action":"opened","issue":{"url":"https://api.github.com/repos/twitter/digits-android/issues/38","labels_url":"https://api.github.com/repos/twitter/digits-android/issues/38/labels{/name}","comments_url":"https://api.github.com/repos/twitter/digits-android/issues/38/comments","events_url":"https://api.github.com/repos/twitter/digits-android/issues/38/events","html_url":"https://github.com/twitter/digits-android/issues/38","id":119145206,"number":38,"title":"Digits SDK doesn't handle Android M runtime permission","user":{"login":"daisy1754","id":980077,"avatar_url":"https://avatars.githubusercontent.com/u/980077?v=3","gravatar_id":"","url":"https://api.github.com/users/daisy1754","html_url":"https://github.com/daisy1754","followers_url":"https://api.github.com/users/daisy1754/followers","following_url":"https://api.github.com/users/daisy1754/following{/other_user}","gists_url":"https://api.github.com/users/daisy1754/gists{/gist_id}","starred_url":"https://api.github.com/users/daisy1754/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daisy1754/subscriptions","organizations_url":"https://api.github.com/users/daisy1754/orgs","repos_url":"https://api.github.com/users/daisy1754/repos","events_url":"https://api.github.com/users/daisy1754/events{/privacy}","received_events_url":"https://api.github.com/users/daisy1754/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-27T07:31:04Z","updated_at":"2015-11-27T07:31:04Z","closed_at":null,"body":"Android M introduced runtime permission model for some permissions, including access to contact list.\r\n\r\nIt doesn't seem digits sdk has code to handle those permissions. On the other hand, these javadocs in `ContactsClient.java` seems quite confusing as it sounds sdk takes care of Android runtime permissions.\r\n\r\n```\r\n     * First checks if user previously gave permission to upload contacts. If not, shows\r\n     * dialog requesting permission to upload users contacts. If permission granted start\r\n     * background service to upload contacts. Otherwise, do nothing.\r\n```"}}