Meteor cordova in an Android application

I am trying to test my application on my phone. I have done this:

meteor build <bundle path> --server <host>:<port>

I took it aligned.apkfrom the build folder and placed it on my phone, but an error occurred while trying to install it.

I tried brew install android-sdkand downloaded the latest apk, but it still didn't work.

I'm not sure what I should do. Please, help.

+2
source share
2 answers

Well, dug a little deeper, that’s what worked for me. See here: android: https://github.com/meteor/meteor/wiki/How-to-submit-your-Android-app-to-Play-Store

namely:

keytool -genkey -alias your-app-name -keyalg RSA -keysize 2048 -validity 10000

cd ~/build-output-directory/android/
jarsigner -digestalg SHA1 unaligned.apk your-app-name

~/.meteor/android_bundle/android-sdk/build-tools/20.0.0/zipalign 4 unaligned.apk production.apk

"production.apk" .

+8

?

https://www.meteor.com/try/7

iOS Xcode, 2 (XCode)

  • meteor install-sdk ios
  • meteor add-platform ios
  • meteor run ios (Simulator)
  • iOS- ()
  • meteor run ios-device --mobile-server my_app_name.meteor.com

: https://github.com/meteor/meteor/wiki/Meteor-Cordova-Phonegap-integration

: http://www.sitepoint.com/beginners-guide-mobile-development-meteor/

+1

All Articles