{"action":"created","issue":{"url":"https://api.github.com/repos/flutter/flutter/issues/21486","repository_url":"https://api.github.com/repos/flutter/flutter","labels_url":"https://api.github.com/repos/flutter/flutter/issues/21486/labels{/name}","comments_url":"https://api.github.com/repos/flutter/flutter/issues/21486/comments","events_url":"https://api.github.com/repos/flutter/flutter/issues/21486/events","html_url":"https://github.com/flutter/flutter/issues/21486","id":357573019,"node_id":"MDU6SXNzdWUzNTc1NzMwMTk=","number":21486,"title":"Request permission result listener of Plugin Registry not called","user":{"login":"rickyazhari","id":6902941,"node_id":"MDQ6VXNlcjY5MDI5NDE=","avatar_url":"https://avatars2.githubusercontent.com/u/6902941?v=4","gravatar_id":"","url":"https://api.github.com/users/rickyazhari","html_url":"https://github.com/rickyazhari","followers_url":"https://api.github.com/users/rickyazhari/followers","following_url":"https://api.github.com/users/rickyazhari/following{/other_user}","gists_url":"https://api.github.com/users/rickyazhari/gists{/gist_id}","starred_url":"https://api.github.com/users/rickyazhari/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rickyazhari/subscriptions","organizations_url":"https://api.github.com/users/rickyazhari/orgs","repos_url":"https://api.github.com/users/rickyazhari/repos","events_url":"https://api.github.com/users/rickyazhari/events{/privacy}","received_events_url":"https://api.github.com/users/rickyazhari/received_events","type":"User","site_admin":false},"labels":[{"id":530589349,"node_id":"MDU6TGFiZWw1MzA1ODkzNDk=","url":"https://api.github.com/repos/flutter/flutter/labels/p:%20framework","name":"p: framework","color":"fbca04","default":false},{"id":283479271,"node_id":"MDU6TGFiZWwyODM0NzkyNzE=","url":"https://api.github.com/repos/flutter/flutter/labels/severe:%20regression","name":"severe: regression","color":"e11d21","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/flutter/flutter/milestones/22","html_url":"https://github.com/flutter/flutter/milestone/22","labels_url":"https://api.github.com/repos/flutter/flutter/milestones/22/labels","id":2270094,"node_id":"MDk6TWlsZXN0b25lMjI3MDA5NA==","number":22,"title":"Goals","description":"P2: These are tasks we think are worth fixing in the coming years. It includes issues we've identified that might block fully shipping broad consumer-facing apps, correctness issues, and bugs relating to polish and quality.\r\n\r\nThe date on this milestone is utterly arbitrary and just intended to sort the milestone appropriately.","creator":{"login":"Hixie","id":551196,"node_id":"MDQ6VXNlcjU1MTE5Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/551196?v=4","gravatar_id":"","url":"https://api.github.com/users/Hixie","html_url":"https://github.com/Hixie","followers_url":"https://api.github.com/users/Hixie/followers","following_url":"https://api.github.com/users/Hixie/following{/other_user}","gists_url":"https://api.github.com/users/Hixie/gists{/gist_id}","starred_url":"https://api.github.com/users/Hixie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hixie/subscriptions","organizations_url":"https://api.github.com/users/Hixie/orgs","repos_url":"https://api.github.com/users/Hixie/repos","events_url":"https://api.github.com/users/Hixie/events{/privacy}","received_events_url":"https://api.github.com/users/Hixie/received_events","type":"User","site_admin":false},"open_issues":1656,"closed_issues":747,"state":"open","created_at":"2017-01-23T00:27:59Z","updated_at":"2018-12-04T08:40:18Z","due_on":"2031-01-01T08:00:00Z","closed_at":null},"comments":4,"created_at":"2018-09-06T09:34:35Z","updated_at":"2018-12-04T08:43:25Z","closed_at":null,"author_association":"NONE","body":"i try request some permission in my flutter app. The permission request invoking smoothly but there is no result of permission action. i try to add log inside of method onRequestPermissionsResult. It seems not call at all\r\n\r\nheres my android porting code : \r\n\r\n\r\n```\r\n@TargetApi(Build.VERSION_CODES.M)\r\n      private void requestMediaPermission(){\r\n        Log.e(\"permission\",\"request gallery permission.\");\r\n        vAct.requestPermissions(new String[]{Manifest.permission.READ_EXTERNAL_STORAGE},102);\r\n    \r\n      }\r\n    \r\n        @Override\r\n          public boolean onRequestPermissionsResult(int i, String[] strings, int[] ints) {\r\n            Log.e(\"permission\",\" value i : \"+i);\r\n            Log.e(\"permission\",\" permission : \"+strings[0]);\r\n            Log.e(\"permission\",\" permission : \"+ints[0]);\r\n            boolean granted = ints.length > 0 && ints[0] == PackageManager.PERMISSION_GRANTED;\r\n            if(granted){\r\n              vChannel.invokeMethod(\"grantingPermission\",null);\r\n            }else{\r\n              if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {\r\n                if(vAct.shouldShowRequestPermissionRationale(strings[0])){\r\n                  vChannel.invokeMethod(\"determinedPermission\", null);\r\n                }else{\r\n                  vChannel.invokeMethod(\"deniedPermission\", null);\r\n                }\r\n              }\r\n            }\r\n            return granted;\r\n          }\r\n```\r\n\r\nmy flutter docor\r\n\r\n```\r\nDoctor summary (to see all details, run flutter doctor -v):\r\n[✓] Flutter (Channel beta, v0.7.3, on Mac OS X 10.13.4 17E202, locale en-ID)\r\n[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)\r\n[!] iOS toolchain - develop for iOS devices (Xcode 9.4.1)\r\n    ! CocoaPods out of date (1.5.0 is recommended).\r\n        CocoaPods is used to retrieve the iOS platform side's plugin code that responds to your plugin usage on the Dart side.\r\n        Without resolving iOS dependencies with CocoaPods, plugins will not work on iOS.\r\n        For more info, see https://flutter.io/platform-plugins\r\n      To upgrade:\r\n        brew upgrade cocoapods\r\n        pod setup\r\n[✓] Android Studio (version 3.0)\r\n[!] VS Code (version 1.26.1)\r\n[✓] Connected devices (2 available)\r\n\r\n! Doctor found issues in 2 categories.\r\n```\r\n\r\nthis my log after three times try to request permission and deny it\r\n\r\n   ```\r\n E/permission(16414): request gallery permission.\r\n    E/permission(16414): request gallery permission.\r\n    E/permission(16414): request gallery permission.\r\n```\r\n\r\n\r\n\r\nIt is running before update beta 0.6.0 .   Please let me know what is actually problem."},"comment":{"url":"https://api.github.com/repos/flutter/flutter/issues/comments/444017637","html_url":"https://github.com/flutter/flutter/issues/21486#issuecomment-444017637","issue_url":"https://api.github.com/repos/flutter/flutter/issues/21486","id":444017637,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NDAxNzYzNw==","user":{"login":"jgerryl","id":38002122,"node_id":"MDQ6VXNlcjM4MDAyMTIy","avatar_url":"https://avatars3.githubusercontent.com/u/38002122?v=4","gravatar_id":"","url":"https://api.github.com/users/jgerryl","html_url":"https://github.com/jgerryl","followers_url":"https://api.github.com/users/jgerryl/followers","following_url":"https://api.github.com/users/jgerryl/following{/other_user}","gists_url":"https://api.github.com/users/jgerryl/gists{/gist_id}","starred_url":"https://api.github.com/users/jgerryl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jgerryl/subscriptions","organizations_url":"https://api.github.com/users/jgerryl/orgs","repos_url":"https://api.github.com/users/jgerryl/repos","events_url":"https://api.github.com/users/jgerryl/events{/privacy}","received_events_url":"https://api.github.com/users/jgerryl/received_events","type":"User","site_admin":false},"created_at":"2018-12-04T08:43:25Z","updated_at":"2018-12-04T08:43:25Z","author_association":"NONE","body":"Hello, I'm experiencing the same problem. the boolean onRequestPermissionsResult() doesn't get called. \r\nIs there any update on this issue? I'm using flutter v.0.9.4.\r\nThanks!"}}
{"actor":{"display_login":"jgerryl"}}