Automatically build Android APK for Ionic 3 project stored in GitLab

Setup GitLab CI. Your configuration file will look something like this

Optionally put a link to file in your that will look like

How-to: Display images obtained from cordova-plugin-camera in ionic with live reload

  1. Install cordova-plugin-file.
  2. Obtain file URI from cordova-plugin-camera and convert it to cdvfile://

How-to: Use angular-templatecache with ionic

From project’s directory execute next command in order to install angular-templatecache

Modify your gulpfile.js

Don’t forget to reference ‘templates’ dependency in your www/js/app.js

Don’t forget to reference www/js/dist/templates.js in your index.html file.

Start debugging with

Run next command to rebuild template cache