darryncampbell / darryncampbell-cordova-plugin-intent

General purpose intent shim layer for cordova appliations on Android. Handles various techniques for sending and receiving intents.
MIT License
86 stars 130 forks source link

cordova-plugin-camera clash with this plugin #137

Open Singosgu opened 2 years ago

Singosgu commented 2 years ago

If you use

    cordova plugin add cordova-plugin-camera

to install camera plugin . It will clash with this plugin . The reason is this camera plugin use too old api of android .

You must fix cordova-plugin-camera| FileProvider.java Line 21 : "android.support.v4.content.FileProvider" Change To "androidx.core.content.FileProvider" CameraLauncher.java Line 42 : "android.support.v4.content.FileProvider" Change To "androidx.core.content.FileProvider"

darryncampbell commented 2 years ago

Hi,

I can't speak for the camera plugin but I do have a note in the readme from years ago that states "If you are installing this plugin along with cordova-plugin-camera you MUST install cordova-plugin-camera first."

That note would have been written before this plugin supported Android X. Please note that:

So, perhaps you also need to use the older version of this plugin prior to Android X support.

Hope that helps

Singosgu commented 2 years ago

Hi,

Yes, I c .

if you use

cordova plugin add cordova-plugin-camera

to install camera , it will clash with this plugin.

if

cordova plugin add https://github.com/apache/cordova-plugin-camera.git

it's ok . no clash .

it seems cordova initial plugin not update to latest .