How do I update to Cordova 12 in Ionic 3? (Camera problem)

Thanks. After many errors and version tests, I managed to update to Cordova 12 using the package.json and ionic info that I’m sending here.

Unfortunately, I can’t build Android platform due to plugins errors, which I reported in another thread: Plugins errors after update cordova-android to 12

My package.json:

{
“name”: “app”,
“version”: “0.0.18”,
“author”: “Ionic Framework”,
“homepage”: “http://ionicframework.com/”,
“private”: true,
“scripts”: {
“clean”: “ionic-app-scripts clean”,
“build”: “ionic-app-scripts build --prod”,
“lint”: “ionic-app-scripts lint”,
“ionic:build”: “ionic-app-scripts build”,
“ionic:serve”: “ionic-app-scripts serve”
},
“dependencies”: {
@angular/common”: “4.4.7”,
@angular/compiler”: “4.4.7”,
@angular/compiler-cli”: “4.4.7”,
@angular/core”: “4.4.7”,
@angular/forms”: “4.4.7”,
@angular/http”: “4.4.7”,
@angular/platform-browser”: “4.4.7”,
@angular/platform-browser-dynamic”: “4.4.7”,
@ionic-native/app-version”: “^4.20.0”,
@ionic-native/camera”: “^4.5.2”,
@ionic-native/core”: “^4.11.0”,
@ionic-native/date-picker”: “^4.20.0”,
@ionic-native/geolocation”: “^4.20.0”,
@ionic-native/splash-screen”: “4.3.2”,
@ionic-native/status-bar”: “4.3.2”,
@ionic-native/vibration”: “^4.20.0”,
@ionic/storage”: “2.0.1”,
“brmasker-ionic-3”: “^1.6.3”,
“cordova-android”: “^12.0.0”,
“cordova-custom-config”: “^5.1.1”,
“cordova-ios”: “^4.4.0”,
“cordova-plugin-app-version”: “^0.1.14”,
“cordova-plugin-camera”: “^4.0.2”,
“cordova-plugin-compat”: “^1.2.0”,
“cordova-plugin-datepicker”: “^0.9.3”,
“cordova-plugin-device”: “^1.1.4”,
“cordova-plugin-geolocation”: “~2.4.3”,
“cordova-plugin-ionic-webview”: “^1.1.16”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-vibration”: “^2.1.6”,
“cordova-plugin-whitelist”: “^1.3.1”,
“ion”: “^1.0.1”,
“ionic-angular”: “3.9.2”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“node-gyp”: “^9.4.0”,
“rxjs”: “^5.5.11”,
“sw-toolbox”: “3.6.0”,
“zone.js”: “0.8.18”
},
“devDependencies”: {
@ionic/app-scripts”: “3.0.1”,
“node-sass”: “7.0.3”,
“typescript”: “2.3.4”
},
“description”: “An Ionic project”,
“cordova”: {
“plugins”: {
“cordova-plugin-vibration”: {},
“cordova-plugin-datepicker”: {},
“cordova-plugin-device”: {},
“cordova-plugin-ionic-webview”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-whitelist”: {},
“ionic-plugin-keyboard”: {},
“cordova-plugin-geolocation”: {
“GEOLOCATION_USAGE_DESCRIPTION”: " "
},
“cordova-plugin-camera”: {},
“cordova-plugin-compat”: {},
“cordova-custom-config”: {},
“cordova-plugin-app-version”: {}
},
“platforms”: [
“android”
]
}
}

Ionic info:

Ionic:

ionic (Ionic CLI) : 4.0.0-rc.13 (C:\Users\Victor\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : ionic-angular 3.9.2
@ionic/app-scripts : 3.0.1

Cordova:

cordova (Cordova CLI) : not installed
Cordova Platforms : android broken

System:

NodeJS : v17.9.1 (C:\Program Files\nodejs\node.exe)
npm : 8.11.0
OS : Windows 10

Environment:

ANDROID_HOME : not set