meteor icon indicating copy to clipboard operation
meteor copied to clipboard

Cordova improvements in Meteor 1.3

Open benjamn opened this issue 10 years ago • 13 comments

A first beta release of the Cordova improvements for Meteor 1.3 is now available: https://github.com/meteor/meteor/issues/6050


Phase 1

Finish iOS plugin

  • [x] Fix add bridging header script
  • [x] Add more unit tests
  • [x] Code cleanup and documentation
  • [x] Use Git subtree for GCDWebServer dependency
  • Set up CircleCI for plugin testing on iOS Simulator (see this article) [given up for now, couldn't get cordova-paramedic to work with the new cordova-ios platform]
  • [x] Implement last known good version mechanism
  • [x] Blacklist faulty versions?
  • [x] Detect when a new app version has been installed and make sure the bundled version is used
  • [x] Handle network errors while downloading, possibly automatic retry (using Meteor iOS backoff and network availability detection implementation?)
  • [x] Find a solution for treating missing assets on the server as errors (instead of downloading and serving index.html)
  • [x] Find a solution for making sure we've downloaded the right version of index.html
  • [x] Safely resume downloads
  • [x] Start background task when downloading so we have at least some time (OS dependent, currently 3 min) to finish downloads after the app goes into the background.
  • [x] Avoid copying bundled assets (by allowing a parent asset bundle to be used to locate assets)
  • [x] Resolve local server port conflicts with multiple active apps
  • [x] Make sure we either use the same port when returning from the background, or reload using the new port
  • [x] Avoid ROOT_URL changing to localhost after hot code push

Stretch goals:

  • [ ] Implement native code compatibility check
  • [x] Expose local file access

Upgrade to Cordova 5.4.1 / Cordova iOS 4.0

  • [x] Either update the dev bundle or switch to using a cordova package
  • [x] Use new Cordova platform API for logging, instead of the hacked approach in our current fork
  • [x] Make WKWebView the default? That means dropping support for iOS 7, but Cordova itself doesn’t officially support it anymore either.
  • [x] Fix launch images and app icons
  • [x] Update access configuration in mobile-config.js to support modern whitelist mechanism
  • [ ] Investigate if browserpolicy is enough to properly support CSP for Cordova

Other

  • [x] Test with iOS 8 (and decide whether we can still support iOS 7)
  • [ ] Expose API to control when/if updates are downloaded and when they take effect (meteor/meteor#4876)
  • [x] Check if setting the ETag header to the asset hash doesn't lead to problems elsewhere in Meteor or Galaxy (see https://github.com/meteor/meteor/issues/626)
  • [x] Write design docs / README

Phase 2

Write Android plugin

Upgrade to Cordova Android 5.0

  • [ ] Investigate what is needed to support Android Marshmallow run-time permissions (meteor/meteor#5770)
  • [x] Upgrade Crosswalk

Other

  • [ ] Update/rewrite Cordova self-tests
  • [ ] Windows support (only if time permits)

benjamn avatar Dec 12 '15 00:12 benjamn

Just peed a little bit with excitement while reading this.

jamielob avatar Dec 15 '15 03:12 jamielob

@martijnwalraven, assuming your estimate for the iOS plugin is accurate, how many more weeks of work do you think it will take for releasing the new Android plugin?

avital avatar Dec 16 '15 20:12 avital

2-3 weeks.

martijnwalraven avatar Dec 16 '15 20:12 martijnwalraven

Wonderful ! Looks like things are going in the right direction

Exilz avatar Dec 16 '15 21:12 Exilz

Really excited, Thanks for the hard work guys !!

ModrichBadr avatar Dec 17 '15 11:12 ModrichBadr

Brilliant news! Thanks @martijnwalraven

chriswessels avatar Dec 28 '15 20:12 chriswessels

Great news !

Tibo46 avatar Jan 06 '16 17:01 Tibo46

:clap: +1

v3rron avatar Jan 11 '16 16:01 v3rron

Thanks @martijnwalraven this is going to make a big difference, especially the WKWebView default! 🔥⚡

cwaring avatar Jan 16 '16 23:01 cwaring

Hi, please consider the point "Expose local file access" in the near future - we could really need a good way to access local files for our meteor cordova project. Essentially all cordova media plugins work by saving files to the local filesystem and pass the paths to the files. We're gonna try nate-strauser's solution for now, but I think it'd be great if there would be a nice and documented solution (eg. security concerns, which parts of the filesystem are accessible, maybe read / write / delete support).

https://github.com/meteor/meteor/issues/3799

DanielDornhardt avatar Jan 19 '16 17:01 DanielDornhardt

A first beta release of the Cordova improvements for Meteor 1.3 is now available: https://github.com/meteor/meteor/issues/6050

martijnwalraven avatar Jan 21 '16 04:01 martijnwalraven

:fireworks:

avital avatar Jan 21 '16 04:01 avital

A new 1.3 beta which combines modules, mobile, and testing is now available: https://github.com/meteor/meteor/issues/6266

Closing this issue to avoid confusion. Please open individual issues for any problems you encounter with Cordova in Meteor 1.3.

martijnwalraven avatar Feb 19 '16 09:02 martijnwalraven