I have generated an apk file using
-
ionic cordova build android - At this state the camera works fine
-
ionic cordova build android --prod --release after signing the apk and zip-aligning the apk the camera fails and cannot fetch the images.
Here are my dependencies
“dependencies”: {
"@angular/common": "~12.0.1",
"@angular/core": "~12.0.1",
"@angular/forms": "~12.0.1",
"@angular/platform-browser": "~12.0.1",
"@angular/platform-browser-dynamic": "~12.0.1",
"@angular/router": "~12.0.1",
"@ionic-native/call-number": "^5.33.1",
"@ionic-native/camera": "^5.33.1",
"@ionic-native/core": "^5.33.1",
"@ionic-native/in-app-browser": "^5.33.1",
"@ionic-native/network": "^5.33.1",
"@ionic-native/onesignal": "^5.33.1",
"@ionic-native/social-sharing": "^5.27.0",
"@ionic-native/status-bar": "^5.33.1",
"@ionic/angular": "^5.5.2",
"@ionic/storage-angular": "^3.0.6",
"call-number": "^1.0.1",
"cordova-android": "^8.1.0",
"cordova-plugin-camera": "^5.0.2",
"cordova-plugin-inappbrowser": "^4.1.0",
"cordova-plugin-network-information": "^3.0.0",
"cordova-plugin-x-socialsharing": "^5.6.8",
"cordova-res": "^0.15.3",
"es6-promise-plugin": "^4.2.2",
"onesignal-cordova-plugin": "^2.11.4",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.11.4"
},
“devDependencies”: {
"@angular-devkit/build-angular": "~12.0.1",
"@angular-eslint/builder": "~12.0.0",
"@angular-eslint/eslint-plugin": "~12.0.0",
"@angular-eslint/eslint-plugin-template": "~12.0.0",
"@angular-eslint/template-parser": "~12.0.0",
"@angular/cli": "~12.0.1",
"@angular/compiler": "~12.0.1",
"@angular/compiler-cli": "~12.0.1",
"@angular/language-service": "~12.0.1",
"@ionic/angular-toolkit": "^4.0.0",
"@ionic/lab": "3.2.10",
"@types/jasmine": "~3.6.0",
"@types/jasminewd2": "~2.0.3",
"@types/node": "^12.11.1",
"@typescript-eslint/eslint-plugin": "4.16.1",
"@typescript-eslint/parser": "4.16.1",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^4.2.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"eslint": "^7.6.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.6",
"eslint-plugin-prefer-arrow": "1.2.2",
"jasmine-core": "~3.7.1",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.3.2",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"typescript": "~4.2.4"
},
Any help is really appreciated.
1 post - 1 participant