practicalmeteor / meteor-wkwebview

A meteor package for using the significantly better and faster WKWebView in mobile apps on iOS 8+.
https://atmospherejs.com/practicalmeteor/wkwebview
MIT License
35 stars 4 forks source link

Installing this breaks CollectionFS S3 #6

Open adamgins opened 9 years ago

adamgins commented 9 years ago

With this package installed I see the following error when trying to upload a file. I only see this error on Cordova on iOS

http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:379:32
http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:105:15
http://localhost:12344/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:801:24
onreadystatechange@http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:164:19
2015-07-23 21:17:24.121 Buzzy[24263:1135380] ERROR: Error: "Queue" network [undefined], errorClass@http://localhost:12344/packages/meteor.js?4dc9757b244a30bdf37a732ac4db4026ce56fb6b:558:24
http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:379:32
http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:105:15
http://localhost:12344/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:801:24
onreadystatechange@http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:164:19
2015-07-23 21:17:24.134 Buzzy[24263:1135380] ERROR: Error: "Queue" network [undefined], errorClass@http://localhost:12344/packages/meteor.js?4dc9757b244a30bdf37a732ac4db4026ce56fb6b:558:24
http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:379:32
http://localhost:12344/packages/cfs_upload-http.js?cf37b2941c8cdbfd85cdc3948f57fed4bb429081:105:15
http://localhost:12344/packages/underscore.js?0a80a8623e1b40b5df5a05582f288ddd586eaa18:801:24
onreadystatechange@http://localhost:12344/packages/cfs_up

The result is it won't upload files on Cordova

If I uinstall the crodova update and this package the error goes away.

adamgins commented 9 years ago

@rbabayoff this package has made my app sooo much faster, thanks. Any ideas on how to resolve the above issues or what may be blocking upload of files/images by CollectionFS?

adamgins commented 9 years ago

@rbabayoff FYI I tried to see if Telerik folk could help, but have said this is Meteor specific: https://github.com/Telerik-Verified-Plugins/WKWebView/issues/137

rbabayoff commented 9 years ago

@adamgins , sorry for the late reply. I haven't used cfs in my meteor apps, as of yet, so I'd probably suggest to have the cfs guys to take a look at it. Also, a simple bear-bones repo that reproduces the problem would help. For the cfs guys, I would mention that wkwebview doesn't support file:// urls, so maybe that's the problem. If that's the case, the work around would be to use cordova's file and fileTransfer plugins directly to upload files to the server.

rbabayoff commented 9 years ago

Another workaround is to have the cfs guys, if they do use file://, to just use http:// urls to file in localhost. From what type of folder in the ios app file system r u trying to upload the file?

adamgins commented 9 years ago

@rbabayoff thanks.

I am just trying to upload an image and have a standard <input type=file which I then process. See example here: https://github.com/CollectionFS/Meteor-CollectionFS#initiate-the-upload If there's another way to get a http://localhost or something let me know, I was not sure how to get that from an input control

@aldeed @raix not sure if you know how we'd do this? I expect lots of folk would want to do this soon for the improved performance you get with this capability. Also not sure what would happen when Meteor 1.2 hits the streets and if using Crosswalk for Android would have the same issues?

dhavalrajani92 commented 8 years ago

+1

dhavalrajani92 commented 8 years ago

@rbabayoff have you find any solution? I am facing same problem. If i remove this package then scroll is not working. Please give me suggestion

shyamami8888 commented 8 years ago

@rbabayoff Having same problem while uploading file with this package any solution for that it is very urgent to solve.

jamielob commented 8 years ago

@dhavalrajani92 & @shyamami8888. Meteor 1.3 has wkwebview enabled by default. so you may have better luck looking at the RCs: https://github.com/meteor/meteor/releases

rbabayoff commented 8 years ago

This package is deprecated in favor of the wkwebview support in meteor 1.3, based on the latest cordova release and the rewritten meteor cordova plugins.