For the moment i tried reading their documentation and Phonegap Build supports 3rd party plugins by specifying the source of the plugin as npm in the config.xml declaration:
<gap:plugin name="aerogear-cordova-push" source="npm" version="2.0.1"/>
This works well as Phonegap Build detects this plugin when the application is uploaded, but the build fails for both iOS and Android with this error:
By looking in the npm repositories effectively i see that there is a Promise plugin of ID es6-promise-plugin but it seems the dependency for the plugin is declared as com.vladstirbu.cordova.promise so the build fails.
Any idea is this could be fixed and how?