cordova-android
cordova-android copied to clipboard
fix!: changed the method called due to deprecation
Platforms affected
Android
Motivation and Context
CordovaInterfaceImpl
is calling a deprecated method of CordovaPlugin
.
Fixes https://github.com/apache/cordova-android/issues/1388
Description
Simply replaces the onRequestPermissionResult
by onRequestPermissionsResult
.
Testing
Created a new Cordova android app with a plugin that requests camera permission.
Checklist
- [X] I've run the tests to see all new and existing tests pass
- [ ] I added automated test coverage as appropriate for this change
- [ ] Commit is prefixed with
(platform)
if this change only applies to one platform (e.g.(android)
) - [X] If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)
- [ ] I've updated the documentation if necessary