You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2022/01/31 15:01:05 UTC

[GitHub] [cordova-android] a-ferrari commented on issue #1393: onRequestPermissionsResult never called

a-ferrari commented on issue #1393:
URL: https://github.com/apache/cordova-android/issues/1393#issuecomment-1025845233


   The reason is the implementation of onRequestPermissionResult in CordovaInterfaceImpl
   
   ```
   /**
        * Called by the system when the user grants permissions
        *
        * @param requestCode
        * @param permissions
        * @param grantResults
        */
       public void onRequestPermissionResult(int requestCode, String[] permissions,
                                             int[] grantResults) throws JSONException {
           Pair<CordovaPlugin, Integer> callback = permissionResultCallbacks.getAndRemoveCallback(requestCode);
           if(callback != null) {
               callback.first.onRequestPermissionResult(callback.second, permissions, grantResults);
           }
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org