-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When calling to file.readAsDataURL (or any other read) WITHOUT livereload the promise never resolves. #2117
Comments
Hi, Same issue here ! I've noticed the problem is that this is never called back when cordova FileReader is patched by zone.js Sometimes (I can't find a way to reproduce each time) File plugin script is loaded before zone.js patch and it breaks something. My workaround was to move cordova.js script after zone one and it seems to be working... Hope it helps Thanks anyway for the great job EDIT seems to be same problem as #1174 and ionic-team/ionic-native#505 discussion is open here ionic-team/ionic2-app-base#126 So maybe it can be closed and we'll continue on it |
Thank you @paulsouche ! i moved the cordova.js after vendor.js script (in the index.html) and it did solved it. |
I have the same problem when i use ReadAsText method from FileReader. |
Hi @vzharkov , I think we should find a solution between cordova / Zone / file-plugin on this thread |
@danielsogl why do you close this? is it fixed? |
We are on May and it works randomly. So it wasn't fixed. Thanks @paulsouche for your workaround. |
Yep, definitly not fixed. |
should be reopen. |
Hi, |
@danielsogl |
Update cordova-android to version 7.1.1 and zone.js to 0.8.26 to fix this issue in Ionic3. |
Thanks , @paulsouche and @CarlosAyala |
Thank you @paulsouche ! i moved the cordova.js after vendor.js script (in the index.html) and it did solved it for me too. |
You don't need to suffer if you just don't use Ionic or you will suffer from bunch of nightmares forever |
Thank you @paulsouche , you saved me from an afternoon of pain! |
im using ionic ver 5 here there is no cordova.js or vendor.js what should i do? please help me |
This seems to still be an issue. Is there a workaround? |
I'm going through the same problem, do you happen to find a solution? |
I'm submitting a ... (check one with "x")
[x ] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/
Current behavior:
When calling to file.readAsDataURL (or any other read) the promise never resolves. it happens only when running WITHOUT live reload. it happens when loading few images to the storage (to the applicationData directory) and then trying to load them and display them.
Expected behavior:
the promise should resolve or reject.
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):ionic
The text was updated successfully, but these errors were encountered: