-
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
File.readAsArrayBuffer promise never resolves #1530
Comments
I updated to these versions today coming from ionic 2 (except I updated ionic-native to 3.7) and ran into the same issue. After playing around a bit with different versions of cordova, zone.js, rxjs, sw-toolbox, ionic-native I found a working one: I would very much appreciate a fix for 3.7 - I would like to try out the new document-viewer plugin. P.S.: All my testing was done with the workaround as described in #505 (polyfill.js before cordova.js in index.html) in place |
@peterpeterparker @SirTori same issue here. Tested with readAsText. Drives me nuts! |
@SirTori YOU ARE MY HERO! |
Same problem. |
@herrjemand Yes, thanks. Just need to change "ionic-native/file" version to 3.4.4. |
Glad this helps some people. It seems many are eager to update to the newest versions these days, a shame it (re)introduces this bug. This is a pretty old issue (#505) that was closed without a resolution but just a workaround (which wasn't even added to the examples and templates - so everyone using these plugins is bound to run into this). I hope now that the workaround doesn't work anymore since 3.6.1 (don't know about 3.5) and the issue is brought up again, a real solution will be seeked. |
@SirTori I don't think this bug was reintroduced. I use ionic-native for File.readAsArrayBuffer since version alpha and I never had to use the workaround described in the issues I linked above. |
I have same issue with |
So... I've fixed the issue. |
Pass reader object on call function. Fixes #1530
@ihadeed is this fixed? I am having the same problem of this function not resolving. my native-version:
I've modified
ionic info
thanks |
@pliablepixels what platform? |
@ihadeed I was about to delete my question but you responded - thankyou :-) running in iOS (host is OS X). I resolved the issue by removing and adding iOS platform |
Hey,
I updated recently to Cordova 7.0.0, cordova-plugin-file 4.3.3 and today ionic-native 3.6.1 and ionic-angular 3.2.0.
After all these update, File.readAsArrayBuffer promise is never resolved.
I tried without luck solution described in #978 and #505 (polyfill.js before cordova.js in index.html ... didn't worked).
Best regards
P.S.: For the record, same behavior tested on iPhone (6) and Android (Samsung Edge)
My info:
global packages:
local packages:
System:
The text was updated successfully, but these errors were encountered: