I need my Cordova application to run on Android API 21 and more, so I set the "android-minSdkVersion" in config.xml file :
<preference name="android-minSdkVersion" value="21"/>
But it didn't work, I could install my APK on a Android 4.4 device for example. I finally found it is because of the Aerogear Push plugin overrides this value in the Android manifest file in the APK with "16", a value set in "/src/android/dependencies.gradle" file of the plugin. I changed the value to "21" and it solved my problem.
Is there a way to change the plugin so that it doesn't set the value to "16" if a min SDK version is set in config.xml file ?