{"action":"opened","issue":{"url":"https://api.github.com/repos/linucksrox/Textecutor/issues/8","repository_url":"https://api.github.com/repos/linucksrox/Textecutor","labels_url":"https://api.github.com/repos/linucksrox/Textecutor/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/linucksrox/Textecutor/issues/8/comments","events_url":"https://api.github.com/repos/linucksrox/Textecutor/issues/8/events","html_url":"https://github.com/linucksrox/Textecutor/issues/8","id":234638848,"number":8,"title":"Check and re-check permissions at key times","user":{"login":"linucksrox","id":5169868,"avatar_url":"https://avatars2.githubusercontent.com/u/5169868?v=3","gravatar_id":"","url":"https://api.github.com/users/linucksrox","html_url":"https://github.com/linucksrox","followers_url":"https://api.github.com/users/linucksrox/followers","following_url":"https://api.github.com/users/linucksrox/following{/other_user}","gists_url":"https://api.github.com/users/linucksrox/gists{/gist_id}","starred_url":"https://api.github.com/users/linucksrox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linucksrox/subscriptions","organizations_url":"https://api.github.com/users/linucksrox/orgs","repos_url":"https://api.github.com/users/linucksrox/repos","events_url":"https://api.github.com/users/linucksrox/events{/privacy}","received_events_url":"https://api.github.com/users/linucksrox/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-06-08T19:57:14Z","updated_at":"2017-06-08T19:57:14Z","closed_at":null,"body":"Permissions are getting even trickier as Android adds more granularity (looking at do not disturb settings here). We need to check permissions at key times to make sure the app doesn't end up in a state where it fails to take action but also fails to ask for permission when the user opens it to troubleshoot.\r\n\r\nMy thoughts right now are this:\r\n1. When an action is enabled, check permissions required for that action\r\n1. When the app opens, check all permissions for all enabled actions (because the user may have disabled something between app usage)\r\n\r\nI don't think it ever makes sense to attempt to request permissions in the broadcast receiver, it should be expected and a direct result of the user taking action."}}
{"actor":{"display_login":"linucksrox"}}