Skip to content

Instantly share code, notes, and snippets.

@orejuelajd
Last active September 9, 2016 19:06
Show Gist options
  • Save orejuelajd/086ad9b2b13ccca4d37fc991e4de8963 to your computer and use it in GitHub Desktop.
Save orejuelajd/086ad9b2b13ccca4d37fc991e4de8963 to your computer and use it in GitHub Desktop.

1 Instalar el SDK de android para el debugging

2 Instalar los drivers del celular (Si se está haciendo desde Windows)

3 Crear la variable ANDROID_HOME para que Ionic pueda exportar para Android. Para esto, ejecutar desde la terminal:

  • export ANDROID_HOME=(Path donde está el SDK de android)/sdk/
  • export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platforms-tools

4 Ejecutar desde la terminal: ionic start test blank

5 cd test

6 Se descarga el siguiente repositorio: https://github.com/don/BluetoothSerial , luego se descomprime y se pega en la raíz del proyecto.

6 Ejecutar este comando: cordova plugin add BluetoothSerial-master ... Sino sirve entonces intentar con el siguiente comando: cordova plugin add cordova-plugin-bluetooth-serial

7 cp -R /plugins/cordova-plugin-bluetooth-serial/examples/Chat/www /www

8 ionic platform add android

9 ionic run android -l -c

El proyecto correrá desde el celular.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment