Plugin should not conflict with other installed plugins.
Actual Behavior
This intermittent crash appears to be caused by this plugin conflicting with the Cordova Camera plugin provider, see this excerpt from the AndroidManifest.xml file of my project:
As you can see both have android:authorities="${applicationId}.provider" which I believe is causing the problem.
Please see this issue on the original repo and this SO post for more details.
Steps to Reproduce
Create a project that uses both this plugin and the Camera plugin.
Context
Use both the camera and this plugin in the same project built for Android.
Debug logs
Stacktrace reported by the Google Play Console:
java.lang.RuntimeException:
at android.app.ActivityThread.installProvider (ActivityThread.java:6242)
at android.app.ActivityThread.installContentProviders (ActivityThread.java:5805)
at android.app.ActivityThread.handleInstallProvider (ActivityThread.java:3058)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1806)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:6494)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:438)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:807)
Caused by: java.lang.NullPointerException:
at android.support.v4.content.FileProvider.parsePathStrategy (FileProvider.java:604)
at android.support.v4.content.FileProvider.getPathStrategy (FileProvider.java:578)
at android.support.v4.content.FileProvider.attachInfo (FileProvider.java:391)
at android.app.ActivityThread.installProvider (ActivityThread.java:6239)
Android app crashes due to NullPointerException on android.support.v4.content.FileProvider.parsePathStrategy
Your Environment
cordova -v
): 8.1.2cordova platform ls
): 7.0.0Expected Behavior
Plugin should not conflict with other installed plugins.
Actual Behavior
This intermittent crash appears to be caused by this plugin conflicting with the Cordova Camera plugin provider, see this excerpt from the
AndroidManifest.xml
file of my project:As you can see both have
android:authorities="${applicationId}.provider"
which I believe is causing the problem.Please see this issue on the original repo and this SO post for more details.
Steps to Reproduce
Create a project that uses both this plugin and the Camera plugin.
Context
Use both the camera and this plugin in the same project built for Android.
Debug logs
Stacktrace reported by the Google Play Console: