Cordova Loader's goal is to make using Meteor with Cordova as easy as using Meteor itself. The compiler interprets the provided Cordova project directory and compiles the assets into minified, platform-specific JavaScript which is stored in memory. When the client loads, it automatically pulls in the platform-specific cordova code for that device. The Cordova API can be used from Meteor the same as it is from vanilla JS apps. Enjoy!
This package aims to solve the shortcomings of the other meteor + cordova packages.
Note: Currently only tested with iOS. Will test the other platforms asap.
- Xcode: 5.1.1
- Cordova: 3.5
================
mrt add cordova-loader
Note: I would also suggest adding the appcache-extra package. It will cache the cordova/platform file after it is loaded once and gives you a way to handle appcache reloads with better UX.
================
{
"cordova":{
"path": "/directory-example/cordova-project",
"platforms": ["ios"],
"logging": true
}
}
- path: Path to your Cordova project directory.
- platforms: Array of platforms you are using.
- logging: This is optional. Just trying to give some transpency into the package.
Note: the compiler will only run once due to live reload loop. If you want to rerun the compiler after adding a plugin just delete any of the public/cordova/ files.
================
- Meteor + Cordova Methods - Pros / Cons to the different packages / ways of combining meteor with Cordova.
- Cordova Setup Guide - Instructions on how to setup the basic Cordova project needed to get started. (coming soon).
- Cordova Plugin Guide - Plugins necessary to make the Meteor app feel native. Also, an overview of optional plugins like setting up push notificaitons and geolocation.
- iOS Setup Guide - Detailed walkthrough of steps to setup the iOS Cordova project.
- Android Setup Guide - Detailed walkthrough of steps to setup Android Cordova project. (coming soon).
- accounts-facebook-cordova - Works with the cordova plugin to use facebook single sign on when it exists otherwise use standar oauth package.
- celestial - Package to make using Famo.us with Meteor easier.
- Meteor Cordova Todo - Just started working on this. This will eventually be a working app as an example.
mrt --settings settings.json
================
If you want more features than this provides, file an issue. Feature requests/contributions are welcome.