mirko77 commented on PR #215:
URL:
https://github.com/apache/cordova-plugin-media-capture/pull/215#issuecomment-1589556346
@chriskhongqarma
On Android 13 and API 33 (Gradle 8), now it throws an error `Couldn't find
meta-data for provider with authority null.cordova.plugin.mediacapture.provider`
because `this.applicationID` is null in `Capture.java` (line 134/135)
```
this.applicationId = (String)
BuildHelper.getBuildConfigValue(this.cordova.getActivity(), "APPLICATION_ID");
this.applicationId = preferences.getString("applicationId",
this.applicationId);
```
this is fixed by using
`
this.applicationId = cordova.getContext().getPackageName();
`
which is what the camera plugin is doing as well (@breautek)->
https://github.com/apache/cordova-plugin-camera/pull/827#pullrequestreview-1341542741
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]