Late last year I put together a Meteor-Cordova app which relied on Crosswalk to provide the webview. Now that I’m trying to update it with the latest Meteor, I can no longer compile with Crosswalk. Unfortunately this breaks the web app entirely, since the default webview is too primitive to do everything I need.
Has anybody succeeded in getting Crosswalk going with a recent version of Meteor? If so, care to share any tips?
I recently updated my app to Meteor 1.1 and I first made sure to delete the cordova folder inside .meteor/local and remove ios/android/firefoxos from .meteor/platforms. I then add the platforms with (meteor add-platform ios android firefoxos). Then I bundle the app with sudo meteor build --directory …/ --server=http://yourserver.co. This will generate the android/ios cordova projects. Afterwards simply follow “Migrate Using ADT” (https://crosswalk-project.org/documentation/cordova/migrate_an_application.html)
Also, the instruction show running off a build and then creating an APK, is there anyway to get this working with the emulator?
BTW, the problem I am hoping to solve with this, I don’t seem to get click events on <input type="file"> on certain Android versions. If there’s another workaround for that, happy to try it.
Hi @arjunrajjain, nope, felt like I was stabbing in the dark, moving files into directories based on old instructions etc etc
BTW, was on of the symptoms for Android users: you could not select files on some Android versions (eg upload images) <input type=file does not seem to work???
Phew I wish there was a package (or a script) for this that performed the magic
do you need crosswalk, in order to support older android versions? or can you go with a chrome webview that works with kitkat 4.4+ ? ( ~50% market share). If so i have a basic android wrapper that works for that i could package up/share. This removes some dependencies and simplifies things, but then you’re outside the cordova ecosystem and just in the native world.
@paryguy and @adamgins I bundled it up and put up on github, link is in this other thread below. It’s pretty basic and at some point I’d like to add more features (JS bridge, preloading, caching files etc) but it gets the job done right now better than the phonegap alternative. Let me know what you think and if it helps you!
@arjunrajjain I haven’t really benchmarked it against Pgap+Crosswalk because I ran into stability problems there.
The drawback is that my wrapper is just for Kitkat+ - the whole point of crosswalk project was to get the chrome renderer working in old versions of android.
This is using the normal android chrome webview that’s part of the OS now, so I can’t see how it could be slower. it rips out many layers of phonegap stuff too so…
It’s really a much simpler approach but may cut out some old device market share in the near term.