- Meteor - Best Practices
- Meteor - ToDo App
- Meteor - Running on mobile
- Meteor - Deployment
- Meteor - Structure
- Meteor - Publish & Subscribe
- Meteor - Package.js
- Meteor - Methods
- Meteor - Accounts
- Meteor - Sorting
- Meteor - Security
- Meteor - Assets
- Meteor - Email
- Meteor - HTTP
- Meteor - EJSON
- Meteor - Timers
- Meteor - Blaze
- Meteor - Check
- Meteor - Core API
- Meteor - Packages
- Meteor - Tracker
- Meteor - Session
- Meteor - Events
- Meteor - Forms
- Meteor - Collections
- Meteor - Templates
- Meteor - First Application
- Meteor - Environment Setup
- Meteor - Overview
- Meteor - Home
Meteor Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Meteor - Running on Mobile
In this chapter, we will learn how to run the app on an android device. Meteor just recently added this functionapty for windows operating system, so we will need to update our meteor app to 1.3 beta version.
Note − By the time of writing this tutorial, the 1.3 version of Meteor is in Beta. We will update this once the production version is released.
Since we want to use the newest Meteor version, we can update it by running the following code in the command prompt window.
C:UsersusernameDesktopmeteorApp>meteor update --release 1.3-beta.11
Step 1 - Install Android SDK
Use the pnk in the following table to install Android SDK.
Sr.No. | Software & Description |
---|---|
1 | Java Development Kit & Android SDK You will need Android SDK to be able to run Meteor apps on mobile environment. If you don t have it installed, you can checkout our tutorial. |
Step 2 - Add an Android Platform
Now, we need to add an Android platform to our project.
C:UsersusernameDesktopmeteorApp>meteor add-platform android
Step 3 - Run the App on an Android Emulator
To run the app on an Android emulator, we will use the –verbose command at the end of the pne to be able to identify the possible errors during the startup process.
C:UsersusernameDesktopmeteorApp>meteor run android --verbose
![Meteor Mobile](/meteor/images/meteor-mobile.jpg)
Run the App on an Android Device
Since Android emulators are slow, it is always a better option to run your app directly on your device. You can do it by connecting the device to your computer, enabpng the developers’ mode and USB debugging.
This process is different for specific devices. You need to find Build Number in settings/About and tap seven times. You will get a notification that you are the developer and the Developer Options will be unlocked.
Search through your settings again and enable USB debugging.
You can run Meteor app on your mobile device using the following command in the command prompt.
C:UsersusernameDesktopmeteorApp>meteor run android-deviceAdvertisements