pjdpaulsagnik opened a new issue, #918: URL: https://github.com/apache/cordova-plugin-camera/issues/918
Bug Report Problem Description Expected Behavior To be able to take photos using the camera. Actual Behavior After Clicking Photo, App RESTARTS, Related Information Reproduction Steps: Launch the app. Activate the camera function and tap the capture button. After Clicking Photo, App RESTARTS, Additional Context or Information: Device: Redmi Note 9 Pro, Vivo Max Operating System: Android 12, 13 cordova plugin list backgroundapprun 0.0.1 "backgroundAppRun" 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 8.0.0 "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 }; if( this.device.version <= 11 ){ cordova.plugins.backgroundMode.enable(); } Camera.getPicture(options).then(function (imageData) { console.log("imageData : ",imageData); if( this.device.version <= 11 ){ 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: Redmi Note 9 Pro, Vivo Max Version Information Cordova: Cordova Android 13.0.0 Operating System: Android 12, 13 Checklist Searched for existing GitHub issues. Included all the necessary information above. Problem : WHILE USING BACKGROUND MODE IN TARGET - SDK 34, SOME PHONES WITH ANDROID 12, 13, WORKS FINE WITHOUT USING BACKGROUND MODE, BUT SOME some phones App reloads, no error in LOGCAT of Android Studio, App just restarts. Error happening in very few devices -- 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: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org