Permission Denial Error on social share

I am using this plugin for social share.
I am am able to share file via whatsapp and email etc. But the problem is as soon as I click share, even though the in-app pop up to share opens up the app throws an error in the console :

E/DatabaseUtils: Writing exception to parcel
    java.lang.SecurityException: Permission Denial: reading com.byteowls.capacitor.filesharer.FileSharerProvider uri content://io.ionic.starter.filesharer.fileprovider/capfilesharer/test2.jpg from pid=14504, uid=1000 requires the provider be exported, or grantUriPermission()
        at android.content.ContentProvider.enforceReadPermissionInner(
        at android.content.ContentProvider$Transport.enforceReadPermission(
        at android.content.ContentProvider$Transport.enforceFilePermission(
        at android.content.ContentProvider$Transport.openTypedAssetFile(
        at android.content.ContentProviderNative.onTransact(
        at android.os.Binder.execTransactInternal(
        at android.os.Binder.execTransact(


this.toDataUrl(, function(myBase64) {

      console.log(myBase64.split(',')[1]); // myBase64 is the base64 string

      let imageBase = myBase64.split(',')[1] ;


          filename: "test2.jpg",


          base64Data:  imageBase ,

          contentType: "image/jpeg",

      }).then(() => {

      }).catch(error => {

          console.error("File sharing failed", error.message);