Ionic works perfectly on emulator but doesn't work when i build the project

Ok, so I did these things:

  1. Ionic library was 1.0.0-beta.13 which I upgraded to 1.3.1 using ionic lib update
  2. Added angular-ui-router + many more functionalities like ( https://github.com/djett41/ionic-filter-bar & https://github.com/katemihalikova/ion-datetime-picker/ ) + there are many promises since there’s lot of XHR

Info:
$ ionic info

Your system information:

Cordova CLI: 6.3.0
Ionic Framework Version: 1.3.1
Ionic CLI Version: 1.7.16
Ionic App Lib Version: 0.7.3
ios-deploy version: 1.8.6
ios-sim version: 5.0.8
OS: Mac OS X El Capitan
Node Version: v4.4.5
Xcode version: Xcode 7.3.1 Build version 7D1014

So the thing is, everything works perfectly when i emulate on ios but when i try building an apk using ionic build android, the app messes up when I install the apk on my phone.