pjdpaulsagnik opened a new issue, #892:
URL: https://github.com/apache/cordova-plugin-camera/issues/892
Bug Report
Problem Description
Expected Behavior
To be able to take photos using the camera.
Actual Behavior
The app crashes.
Related Information
Reproduction Steps:
Launch the app.
Activate the camera function and tap the capture button.
The app crashes.
Additional Context or Information:
Device: Samsung M15
Operating System: Android 14
cordova plugin list
backgroundapprun 0.0.1 "backgroundAppRun"
com-sarriaroman-photoviewer 1.2.4 "PhotoViewer"
cordova-background-geolocation 4.15.0 "BackgroundGeolocation"
cordova-plugin-android-permissions 1.1.5 "Permissions"
cordova-plugin-app-version 0.1.9 "AppVersion"
cordova-plugin-background-fetch 7.2.4 "CDVBackgroundFetch"
cordova-plugin-background-mode 0.7.3 "BackgroundMode"
cordova-plugin-camera 6.0.1-dev "Camera"
cordova-plugin-console 1.1.0 "Console"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-dialogs 2.0.1 "Notification"
cordova-plugin-file-opener2 3.0.5 "File Opener2"
cordova-plugin-file-transfer 1.7.1 "File Transfer"
cordova-plugin-file 6.0.2 "File"
cordova-plugin-firebasex 14.0.0 "Google Firebase Plugin"
cordova-plugin-inappbrowser 3.0.0 "InAppBrowser"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 5.0.0 "cordova-plugin-ionic-webview"
cordova-plugin-network-information 3.0.0 "Network Information"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-streaming-media 2.3.0 "StreamingMedia"
cordova-plugin-vibration 3.1.0 "Vibration"
cordova-plugin-whitelist 1.3.5 "Whitelist"
cordova-plugin-x-socialsharing 6.0.4 "SocialSharing"
cordova-plugin-x-toast 2.7.3 "Toast"
es6-promise-plugin 4.2.2 "Promise"
Command or Code
$scope.showActionSheet = function () {
console.log("LOG Action Sheet !");
$ionicPopup.show({
title: 'Upload Image',
subTitle: '',
scope: $scope,
buttons: [
{ text: '<i class="icon
ion-android-camera"><p>Camera</p>' ,
onTap: function(e) {
$scope.openCameraTEST();
}
},
]
});
};
$scope.openCameraTEST = function () {
var options = {
quality: 75,
allowEdit: false,
sourceType: 1,
destinationType: 0
};
cordova.plugins.backgroundMode.enable();
Camera.getPicture(options).then(function (imageData) {
console.log("imageData : ",imageData);
cordova.plugins.backgroundMode.disable();
$scope.data.doc_path = "data:image/jpeg;base64," + imageData;
console.log("$scope.data.doc_path : ",$scope.data.doc_path);
}, function (err) {
console.log(err);
});
}
Environment, Platform, Device
Platform: Android
Device: Samsung M15
Version Information
Cordova: Cordova Android 10.1.1
Operating System: Android 14
Checklist
Searched for existing GitHub issues.
Included all the necessary information above.
Problem :
When TargetSDK set to - API - 34, App is crashing for most of the android
versions.
Please release an update for TargetSDK - 34
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]