NeutrinosPlatform / cordova-plugin-document-scanner

cordova plugin for document scan
https://www.neutrinos.co/
MIT License
85 stars 60 forks source link

Runtime Error: Failure delivering result ResultInfo #19

Closed uzumakinaruto123 closed 6 years ago

uzumakinaruto123 commented 6 years ago

Facing Runtime error after adding the plugin.

java.lang.RuntimeException: Failure delivering result ResultInfo{who=android:fragment:0, request=2, result=-1, data=null} to activity {custom.package.name/com.scanlibrary.ScanActivity}: java.lang.SecurityException: Failed to find provider for user 0; expected to find a valid ContentProvider for this authority

Once the picture is clicked and on clicking ok, app crashes with above error.

ChrisTomAlx commented 6 years ago

Duplicate of issue #17.

Here is the solution :- Add <preference name="android-targetSdkVersion" value="25" /> to your config.xml under platform android.

Closing this issue. If you need help please continue in issue #17

tulinisarg commented 6 years ago

Let's update the documentation with this information.

On Wed, Jun 13, 2018, 11:02 AM Christy Thomas Alex notifications@github.com wrote:

Closed #19 https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/19 .

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/NeutrinosPlatform/cordova-plugin-document-scanner/issues/19#event-1677847257, or mute the thread https://github.com/notifications/unsubscribe-auth/ATYS1g86MDESq6Rt03IallYn87KVLD93ks5t8KPngaJpZM4UljgF .

ChrisTomAlx commented 6 years ago

@tulinisarg Will do.