Skip to main content

Overview

Meteor integrates with Apache Cordova to build native mobile apps for iOS and Android from your web application codebase. Run your Meteor app on mobile devices with full access to native device features.

What is Cordova?

Cordova allows you to:
  • Package web apps as native mobile applications
  • Access device features like camera, GPS, and local storage
  • Deploy to app stores (Apple App Store, Google Play Store)
  • Update apps remotely via hot code push
A Cordova app is a web app running in a native WebView container with access to native device APIs through plugins.

Key Benefits

Single Codebase

Write once, deploy to web, iOS, and Android:

Hot Code Push

Update your app without going through app store review:

Faster Loading

Assets are bundled with the app:

Adding Mobile Platforms

Add iOS Platform

Requirements:
  • macOS with Xcode installed
  • Xcode Command Line Tools
  • iOS Simulator or physical iOS device

Add Android Platform

Requirements:
  • Java Development Kit (JDK)
  • Android SDK / Android Studio
  • Android emulator or physical Android device
  • ANDROID_HOME environment variable set

List and Remove Platforms

Running on Mobile

iOS Simulator

iOS Device

Android Emulator

Android Device

Cordova Plugins

Plugins provide access to native device features.

Adding Plugins

Using Plugins in Code

Common Plugins

Mobile Configuration

Create mobile-config.js in your app root:

Platform Detection

Hot Code Push

Meteor automatically updates mobile apps with new code:

Controlling Updates

Building for Production

iOS Production Build

Android Production Build

Local Files and Assets

Accessing Local Files

Loading Local Assets

Troubleshooting

Common Issues

Build Failures:
Port Conflicts:
Plugin Issues:

Performance Tips

  1. Optimize Images: Use appropriate resolutions for mobile
  2. Minimize Animations: Use CSS transforms over JavaScript
  3. Lazy Load: Load data and images as needed
  4. Cache Data: Use local storage for offline support
  5. Test on Devices: Simulators don’t reflect real performance