You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "mirko77 (via GitHub)" <gi...@apache.org> on 2023/06/13 15:35:55 UTC
[GitHub] [cordova-plugin-media-capture] mirko77 commented on pull request #215: [Android] Store image/audio/video in FileProvider due to Android 11 updates
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: 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