moberwasserlechner / capacitor-filesharer

Capacitor plugin to download and share files for the Web, Android and iOS! Stop the war in Ukraine!
MIT License
82 stars 20 forks source link

The code skips whatever is written after ''Filereader.onloadend = " #25

Closed pratiksan45 closed 1 year ago

pratiksan45 commented 3 years ago

I am using Filesharer in my Ionic 5 app. But It is not working. I have used breakpoints in the code and found out that, the code is not able to reach after Filereader.onloadend =() => { and after. This is the reason I am not able to use the plugin in my app. Please help.

KrishPro commented 3 years ago

I was having the same issue. For me it solved by uninstalling all of the cordova plugins

In my case it was cordova-plugin-file only, So I used capacitor's FileSystem Plugin instead of cordova-plugin-file

Capacitor's Plugins don't require any installation they comes with @capacitor/core Let me know if it works or not

moberwasserlechner commented 2 years ago

I released the new version 3.0.0 today

If you can and it is still relevant please test this issue with the new version. (Capacitor 3.0.0 required)

I keep this issue open a few days and close it afterwards if there is no feedback.

BR Michael

hrbmiguelromeroh commented 2 years ago

this is still happening on build 3.0.0 for ionic 5, w/ cap ^3 @moberwasserlechner

matadorhernan commented 2 years ago

the issue this plugin is conflicting with cordova-plugin-file

KrishPro commented 2 years ago

the issue this plugin is conflicting with cordova-plugin-file

This is a bug in this plugin, I was also having this same issue.

The solutions is to use Capacitor's Plugin You can use Capacitor's FileSystem Plugin for your usecase.

Note: For capacitor 3+ you'll have to install it with npm install @capacitor/filesystem

moberwasserlechner commented 1 year ago

Closed as outdated.