Ionic

How To Automatically Sign Your Android APK At Build Time With Ionic

Posted by Weston Ganger on December 01, 2015

Its a hassle to manually sign your APK’s after you build them, you should definately automate this.

Its so simple, heres how:


Firstly create a keystore file if you haven’t already:


keytool -genkey -v -keystore /path/to/yourName.keystore -alias your_alias_name -keyalg RSA -keysize 2048 -validity 10000

Next create the file platforms/android/release-signing.properties


# platforms/android/release-signing.properties

storeFile=/path/to/yourName.keystore
keyAlias=your_alias_name

# add these too if you dont want to manually enter your keystore and key password every time
storePassword=your_keystore_password
keyPassword=your_key_password

Now they will be signed during the build process with ionic build --release android


Related External Links:


Posted in Ionic and Tagged with ionic android 


Need help on your next project or application?

I specialize in Ruby-on-Rails, AngularJS, Javascript, Bootstrap, and Hybrid Mobile Apps with Cordova & Ionic.

Contact Me

Recommended Posts