nomori7010 opened a new issue, #891:
URL: https://github.com/apache/cordova-plugin-camera/issues/891

   # Bug Report
   
   ## Problem Description
   
   ### Expected Behavior
   To be able to take photos using the camera.
   
   ### Actual Behavior
   The app crashes.
   
   ## Related Information
   - Reproduction Steps:
     1. Launch the app.
     2. Activate the camera function and tap the capture button.
     3. The app crashes.
   - Additional Context or Information:
     - Device: XPERIA SO-53C
     - Operating System: Android 14
   
   ### cordova plugin list
   
   "cordova-custom-config": "5.1.1",
   "cordova-plugin-camera": "7.0.0",
   "cordova-plugin-dialogs": "2.0.2",
   "cordova-plugin-file": "8.1.0",
   "cordova-plugin-geolocation": "5.0.0",
   "cordova-plugin-inappbrowser": "6.0.0",
   "monaca-plugin-monaca-core": "3.3.1",
   "ncmb-push-monaca-plugin": "3.2.2",
   "cordova-plugin-network-information": "3.0.0",
   "cordova-plugin-device": "3.0.0",
   "monaca-plugin-webintent": "1.0.1",
   "cordova.plugins.diagnostic": ""
   
   ### Command or Code
   ```javascript
   navigator.camera.getPicture(
     function(imgUri){
       this.photoSelected = new Date().getFullYear() + "/" + (new 
Date().getMonth() + 1)  + "/" + new Date().getDate() + " " + new 
Date().getHours() + ":" + new Date().getMinutes() + ":" + new 
Date().getSeconds();
       window.resolveLocalFileSystemURL(imgUri, 
         function(fileEntry)
         {
           fileEntry.file(
             function(file){ 
               var reader = new FileReader();
               reader.onloadend = function(event){callback(new 
Blob([event.target.result]));}
               reader.readAsArrayBuffer(file);
             }, 
             function(error){
               try{errcallback(error)}catch(e){}
             }
           );
         }, 
         function(error)
         {
           try{errcallback(error)}catch(e){}
         }
       );
     }, 
     function(message){
       try{
         errcallback(error)
       }catch(e){}
     }, 
     { 
       quality: this.quality,
       destinationType: 1,
       allowEdit: false,
       encodingType: 0, 
       correctOrientation: true, 
       saveToPhotoAlbum: true,
       sourceType: (options === undefined || options.sourceType === undefined)? 
1: options.sourceType
     }
   );
   ```
   
   ### Environment, Platform, Device
   - Platform: Android
   - Device: XPERIA SO-53C
   
   ### Version Information
   - Cordova: Cordova Android 12.0.1
   - Operating System: Android 14
   
   ## Checklist
   - [x] Searched for existing GitHub issues.
   - [x] Updated Cordova tooling to the latest version.
   - [x] Included all the necessary information above.
   


-- 
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

Reply via email to