Error in cordova.js

When running my Ionic app on Android (both device and emulator) (works on iOS)
I get an error in cordova.js, I tried downgrading Cordova to see if it was a recent bug but it is the same there. I did not touch the app to get the error, just ran it.

The code is available at

Found the issue, a plugin was being loaded on Android while it was iOS only. I didn’t fully remove it from the Android plugins (