@bandito wrote:
Hi
I was using the Camera native plugin with webview in order to show a picture on the screen but for some reason it doesn’t work anymore.
<img [src]="picture" alt="A profile picture">
getPictureFromNativeCamera(options: CameraOptions) { let options: CameraOptions = { quality: 100, destinationType: this.camera.DestinationType.FILE_URI, mediaType: this.camera.MediaType.PICTURE, encodingType: this.camera.EncodingType.PNG, targetWidth: 250, targetHeight: 250 }; this.camera.getPicture(options) .then((imageData: string) => { this.picture = this.webview.convertFileSrc(imageData); }
I added my package.json here even though it doesn’t do anything if I go back a version
"dependencies": { "@yuny/common": "7.2.9", "@yuny/core": "7.2.9", "@yuny/forms": "7.2.9", "@yuny/platform-browser": "7.2.9", "@yuny/platform-browser-dynamic": "7.2.9", "@yuny/router": "7.2.9", "@ionic-native/camera": "^5.3.0", "@ionic-native/core": "^5.5.0", "@ionic-native/email-composer": "^5.5.0", "@ionic-native/file": "^5.5.0", "@ionic-native/file-opener": "^5.5.0", "@ionic-native/file-transfer": "^5.8.0", "@ionic-native/in-app-purchase": "^5.5.0", "@ionic-native/ionic-webview": "^5.5.0", "@ionic-native/market": "^5.5.0", "@ionic-native/splash-screen": "^5.5.0", "@ionic-native/status-bar": "^5.5.0", "@Ionic/angular": "^4.5.0", "@Ionic/storage": "^2.1.3", "ajv": "^6.10.0", "cordova-android": "8.0.0", "cordova-electron": "^1.0.2", "cordova-ios": "^5.0.1", "cordova-plugin-camera": "^4.1.0", "cordova-plugin-device": "^2.0.2", "cordova-plugin-email-composer": "^0.9.2", "cordova-plugin-file": "^6.0.1", "cordova-plugin-file-opener2": "^2.2.0", "cordova-plugin-file-transfer": "^1.7.1", "cordova-plugin-inapppurchase": "1.2.0", "cordova-plugin-ionic-keyboard": "^2.1.3", "cordova-plugin-ionic-webview": "^4.1.2", "cordova-plugin-market": "^1.2.0", "cordova-plugin-splashscreen": "^5.0.2", "cordova-plugin-statusbar": "^2.4.2", "cordova-plugin-whitelist": "^1.3.3", "cordova-sqlite-storage": "^3.2.0", "core-js": "^2.6.5", "lokijs": "^1.5.6", "path": "^0.12.7", "release": "^6.0.1", "rxjs": "6.5.2", "xlsx": "^0.14.1", "zone.js": "^0.8.26" }, "devDependencies": { "@angular-devkit/architect": "0.13.9", "@angular-devkit/build-angular": "0.13.9", "@angular-devkit/core": "7.3.9", "@angular-devkit/schematics": "7.3.9", "@yuny/cli": "7.3.9", "@yuny/compiler": "7.2.9", "@yuny/compiler-cli": "7.2.9", "@yuny/language-service": "~7.2.15", "@Ionic/angular-toolkit": "1.5.1", "@Ionic/v4-migration-tslint": "^1.7.1", "@types/jasmine": "3.3.12", "@types/jasminewd2": "2.0.6", "@types/node": "12.0.8", "@types/lokijs": "^1.5.2", "codelyzer": "^4.4.4", "jasmine-core": "3.4.0", "jasmine-spec-reporter": "4.2.1", "karma": "4.1.0", "karma-chrome-launcher": "2.2.0", "karma-coverage-istanbul-reporter": "2.0.5", "karma-jasmine": "2.0.1", "karma-jasmine-html-reporter": "1.4.2", "protractor": "5.4.2", "ts-node": "8.2.0", "tslint": "^5.17.0", "typescript": "~3.2.4" },
Posts: 1
Participants: 1