mizzao / meteor-sharejs

Meteor smart package for transparently adding ShareJS editors to an app
MIT License
225 stars 53 forks source link

sharejs fails in cordova #62

Closed RemyNoulin closed 8 years ago

RemyNoulin commented 8 years ago

I am using textarea and sharejs in a cordova app. I keep seeing 'Loading...'

After some debug, I see that the call to sharejs fails (both in iOS and Android):

sharejs.open docId, 'text', getOptions(), (error, doc) =>

The callback is never executed.

In the console log, I get an error:

Failed to load resource: the server responded with a status of 401 (Unauthorized) http://www.google.com/images/cleardot.gif

The file downloading this image is: packages/sharejs-base/.npm/package/node_modules/share/node_modules/browserchannel/dist/bcsocket-uncompressed.js

This works fine in web browsers. Can we fix sharejs to make it work in cordova?

DavidSichau commented 8 years ago

I do not have any experience with cordova. Is this problem with the changes in cordova for meteor 1.3 still relevant?

RemyNoulin commented 8 years ago

There is a new cordova version in meteor 1.3, so it might not be relevant anymore.