Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start the my meteor app on an android device?

I was testing the new Meteor build 0.9.2 which integrates Phonegap now. Everything is working fine so far. But I don't really understand how to start my app on my android device. The manual states that you should specify meteor run android-device -p <local IP>:<local port> and that the server and the device should be connected to the same local network. I use the ip and port of the server here. But I get this error:

ERROR: Failed to launch application on device: ERROR: Failed to install apk to device: ERROR: Failed to deploy to device, no devices found.

I'm not sure how I should link my device to the server.

like image 433
Chromos Avatar asked Sep 16 '14 11:09

Chromos


1 Answers

This is how it worked for me: You have to connect your device via usb to your computer. Activate developer-tools and usb-debugging. Then run meteor run android-device -p <local IP>:<local port>. Local IP should be the ip your computer has in the network, usually something like this 192.168.1.xx. Port is by default 3000. To start an app without usb requires installing it on the device, I guess.

like image 163
Chromos Avatar answered Nov 09 '22 03:11

Chromos