When you say you "build with ionic", what command were you using?
Ionic has Cordova as part of its solution stack, so running ionic build ios or ionic build android, will eventually run cordova build. You don't need to run it by itself.
Hi Chris, thanks for your answer, i use ionic build android and when i run the app, deviceready is fired, it takes about 2 to 3 seconds to load and hide splashscreen, but when i build with phonegap build and run the app, i get the log "deviceready has not fired after 5 seconds" and it takes 12 to 14 seconds to load and hide splashscreen, but its weird because the ionic-native library has a deviceready event and is fired after 1.8 to 2.4 seconds but logs after the cordova one.
@OP -- moved to PGB forum since that's where you're having the issue.
What are you uploading to PGB? If you can share a zip file, that might help. Make sure you aren't providing a "cordova.js" or "phonegap.js" file to PGB -- it'll fill that in on its own.
If you are using Ionic, why look into using Ionic Packager from ionic.io? It is like PhoneGap Build but more Ionic friendly.