CoffeeScript Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.

As of Meteor 0.9.2 there is built-in support for Cordova and Phonegap.


Meteor is a JavaScript framework that makes it a snap to build realtime apps. Phonegap is a way to turn web apps into phone apps.

meteor-phonegap is a quick and convenient way to turn a Meteor project into an Android Phonegap app that you can upload to the Google Play Developer Console.

You could take the cordova project and continue to develop that but that would be like forking your own project. We're trying to create a way to allow you to keep developing your Meteor project with only minor additions related phonegap settings, i.e. config.xml and AndroidManifest.xml for Android. Great for prototyping and in-house apps.

There's tons of stuff to do and improve. Your patches, bug reports and feature requests are very welcome on github. Help with adding more platforms is highly appreciated.

I haven't yet used this in a professional context myself. If you are using it to make money or you want to incite me to work on this more: BTC donations welcome at 1BPeqWrfaoUFC3SWXmU1N2jKset7kThA59

Also check out the project which is more active as of late 2013

Getting started

First step is to install the Android SDK. Follow the instructions on the Android SDK website.

Add both the Android SDK tools and build-tools/android-x.x to your PATH. E.g.

export PATH="${HOME}/AndroidSDK/adt-bundle-mac-x86_64-20131030/sdk/build-tools/android-4.4:${HOME}/AndroidSDK/adt-bundle-mac-x86_64-20131030/sdk/tools:$PATH"

I'm still not 100% sure about the relationship between Cordova and Phonegap but the cordova cli tool is extremely useful. We presume you kinda know what npm is and you have it installed on your system. Now, make sure node is up-to-date (at least v0.8.20 around February 2013) and run the following:

sudo npm install -g cordova

You possibly want to chown -Ryourself/usr/local/lib/node_modules/cordova turns any Meteor app into a Phonegap app.

./ --classname --appname "Meteorjs documentation" --versioncode 5 --versionname


You first need to generate a key, e.g. like this:

keytool -validity 9125 -sigalg MD5withRSA -keyalg RSA -keysize 1024 -genkey -v -alias YOURALIAS -keystore release-key.keystore

The rest of the steps can be handled by, which looks for an appropriate .apk and turns it into aligned-signed.apk, which is ready to be be uploaded to Unfortunately there doesn't seem to be a way to automate this last step (May 2013).

Help / Consulting

meteor-phonegap is written by Kasper Souren. Kasper is available for Meteor and Phonegap consulting. Also feel free to simply create issues or requests on github.

Some example Android apps

Dependencies for Android

Cordova build/compile can fail on Ubuntu giving error on appt file: Execute failed: Cannot run program "/home/myAccount/adt-bundle/sdk/build-tools/19.0.1/aapt"

You check the aapt and it's there. The problem is actually that you are not having the right binary version of the the file (32/64) Installing those dependencies usually fix the problem: sudo apt-get install libc6:i386 libgcc1:i386 gcc-4.6-base:i386 libstdc++5:i386 libstdc++6:i386

You might also need: sudo apt-get install lib32stdc++6 lib32bz2-1.0 lib32z1 lib32ncurses5

See also