You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2021/03/18 12:38:15 UTC

[GitHub] [cordova-plugin-camera] PrinceRajesh opened a new issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

PrinceRajesh opened a new issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713


   # Bug Report
   After capture image app goes to crashed in ionic 3 app using camera plug in
   ## Problem
   After updated android-targetSdkVersion version ionic camera has crashed after taking picture in Redmi phone.
   
   ### What is expected to happen?
   It should work on each devices
   
   
   ### What does actually happen?
   App has crashed in Redmi 7A (Android version:-10QKQ1.191014.001)
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   Hi I am working on ionic 3 and i has developed an capture image feature using camera plug-in. My app was working very well untill my targetSdkVersion was 28 in config.xml file (like this:- <preference name="android-targetSdkVersion" value="28" />).
   But targetSdkVersion 28 has blocked by google play store therefore i has updated it in 29 (like this:- <preference name="android-targetSdkVersion" value="29" />) and add  following line in config.xml 
   
   <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
               <application android:largeHeap="true" android:networkSecurityConfig="@xml/network_security_config" android:requestLegacyExternalStorage="true" />
           </edit-config>
           <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
   
   
   
   Then re-added platform "android 8.1.0", after that my camera has crashed each time whenever i am trying to capture image from my app.
   Device is :- Redmi 7A,
   Android version:-10QKQ1.191014.001
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   Add In config.xml:-
   
   <edit-config file="app/src/main/AndroidManifest.xml" mode="merge" target="/manifest/application" xmlns:android="http://schemas.android.com/apk/res/android">
               <application android:largeHeap="true" android:networkSecurityConfig="@xml/network_security_config" android:requestLegacyExternalStorage="true" />
           </edit-config>
           <resource-file src="resources/android/xml/network_security_config.xml" target="app/src/main/res/xml/network_security_config.xml" />
   
   
   following is my camera function code in .ts file:-
    const options: CameraOptions = {
         cameraDirection:1,
         correctOrientation:true,
         destinationType: this.camera.DestinationType.FILE_URI,
         sourceType:this.camera.PictureSourceType.CAMERA,
         encodingType: this.camera.EncodingType.JPEG,
         mediaType: this.camera.MediaType.PICTURE
       }  
       this.camera.getPicture(options).then((imagePath) => {
         console.log('camera function imagePath==', imagePath);
         this.currentName = imagePath;
         let name = this.currentName.split("/");    // code for fetching file name
         this.fileName = name[name.length - 1];
         console.log('this is camera file Name==',this.fileName);
       },(err) => {
         // alert(JSON.stringify(err));
         console.log('imagePath error==', err);
       });
   
   
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   My app's android platform version:- 8.1.1,
   Device is :- Redmi 7A,
   Android version:-10QKQ1.191014.001
   Camer plugin version:- "cordova-plugin-camera 4.1.0"
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   My app's android platform version:- 8.1.1,
   Device is :- Redmi 7A,
   Android version:-10QKQ1.191014.001
   Camer plugin version:- "cordova-plugin-camera 4.1.0"
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [ ] I searched for existing GitHub issues
   - [ ] I updated all Cordova tooling to most recent version
   - [ ] I 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] josevavia commented on issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
josevavia commented on issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713#issuecomment-819695088


   Any update on this? We have same problem in ionic 5, detected in Xiaomi Redmi 7A


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] PieterVanPoyer commented on issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
PieterVanPoyer commented on issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713#issuecomment-855278725


   Closing ticket due to lack of response on request to update the tooling and due to a missing stacktrace.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] PieterVanPoyer closed issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
PieterVanPoyer closed issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] timbru31 commented on issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
timbru31 commented on issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713#issuecomment-812690304


   Please share the actual stacktrace from adb/android studio.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] AmrAbdalrahman commented on issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
AmrAbdalrahman commented on issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713#issuecomment-817150873


   also with me, ionic 3 and after updating targetSdkVersion 28 to 29  capture image not show !!


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] PieterVanPoyer commented on issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
PieterVanPoyer commented on issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713#issuecomment-843542906


   Please update your Cordova tooling. 
   And provide a stacktrace and your used versions.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org


[GitHub] [cordova-plugin-camera] benepik commented on issue #713: Ionic 3 (Android app) crashed after capturing image using camera plugin

Posted by GitBox <gi...@apache.org>.
benepik commented on issue #713:
URL: https://github.com/apache/cordova-plugin-camera/issues/713#issuecomment-812330206


   yes, same issue have with me, after updating targetSdkVersion 28 to 29 camera has started to crashed/reload app after capture image


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org