Simplified to cordova only