{"action":"opened","issue":{"url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/421","repository_url":"https://api.github.com/repos/bluelinelabs/Conductor","labels_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/421/labels{/name}","comments_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/421/comments","events_url":"https://api.github.com/repos/bluelinelabs/Conductor/issues/421/events","html_url":"https://github.com/bluelinelabs/Conductor/issues/421","id":307256200,"number":421,"title":"Adding onRequestPermissionsResult and onActivityResult to Controller.LifecycleListener?","user":{"login":"angusholder","id":7407345,"avatar_url":"https://avatars0.githubusercontent.com/u/7407345?v=4","gravatar_id":"","url":"https://api.github.com/users/angusholder","html_url":"https://github.com/angusholder","followers_url":"https://api.github.com/users/angusholder/followers","following_url":"https://api.github.com/users/angusholder/following{/other_user}","gists_url":"https://api.github.com/users/angusholder/gists{/gist_id}","starred_url":"https://api.github.com/users/angusholder/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angusholder/subscriptions","organizations_url":"https://api.github.com/users/angusholder/orgs","repos_url":"https://api.github.com/users/angusholder/repos","events_url":"https://api.github.com/users/angusholder/events{/privacy}","received_events_url":"https://api.github.com/users/angusholder/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-21T13:59:10Z","updated_at":"2018-03-21T13:59:10Z","closed_at":null,"author_association":"NONE","body":"We use NFC in a lot of places in our app, which mean many controllers have to do the whole thing of:\r\n`\r\nif (nfc antenna enabled) {\r\n    if (has nfc permission) {\r\n        enable nfc reader()\r\n    } else {\r\n        request nfc permission\r\n    }\r\n} else {\r\n    start activity(nfc settings)\r\n}\r\n`\r\nand then override onRequestPermissionsResult and onActivityResult to receive the response from both of those. Does it sound reasonable to add these two callbacks to the lifecycle listener?"}}
{"actor":{"display_login":"angusholder"}}