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/08/10 10:26:41 UTC

[GitHub] [cordova-plugin-camera] vijayvagdiya opened a new issue #755: App Restart when capture image from camera

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


   # Bug Report
   
   ## Problem
   Steps :
   
   1. Click on camera button in app then camera open 
   2. Take picture front/back picture display 
   3. Selection option cancel or OK then I have click OK
   4. App restart (means app open from start page with splash screen) 
   
   `
      
       const options: CameraOptions = {
         quality: 100,
         destinationType: this.camera.DestinationType.FILE_URI,
         encodingType: this.camera.EncodingType.JPEG,
         mediaType: this.camera.MediaType.PICTURE
       }
       
       this.camera.getPicture(options).then((imageData) => {
         console.log("imageData ===> ",imageData);
        // imageData is either a base64 encoded string or a file URI
        // If it's base64 (DATA_URL):
        let base64Image = 'data:image/jpeg;base64,' + imageData;
       }, (err) => {
         console.log("errr",err);
         this.utilServices.openForSuccessError({ value: false, message1: err});
         
        // Handle error
       });`
   ### What is expected to happen?
   
   
   
   
   ### What does actually happen?
   
   
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you experiencing the issue? -->
   
   
   
   ### 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.
   -->
   
   
   
   ## 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.

To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org

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] vijayvagdiya commented on issue #755: App Restart when capture image from camera

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


   Sorry, I guess I wasn't much clear about the issue in my original bug reporting. Please check below two notes:
   1. My android version 11 [I am testing this code in android 11(MI device) and android 10(Motorola) devices]
   2. All the permissions of camera access is 100% set.
   3. The issue doesn't come in Android 10.
   4. The issues comes in just Android 11.
   So this has something to do with newer version of the Android because it already works with lower versions.
   If there was an issue with Cordova or low memory phones, it should be occurring in Android 10 too.


-- 
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-unsubscribe@cordova.apache.org

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] breautek commented on issue #755: App Restart when capture image from camera

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


   > Android uses intents to launch the camera activity on the device to capture images, and on phones with low memory, the Cordova activity may be killed. In this scenario, the result from the plugin call will be delivered via the resume event. See the Android Lifecycle guide for more information. The pendingResult.result value will contain the value that would be passed to the callbacks (either the URI/URL or an error message). Check the pendingResult.pluginStatus to determine whether or not the call was successful.
   
   https://github.com/apache/cordova-plugin-camera#android-quirks
   
   Based on the information provided, this is most likely what you're running into. For the splashscreen, you may have to turn on [SplashShowOnlyFirstTime](https://github.com/apache/cordova-plugin-splashscreen#android-quirks) preference, if you don't want the splashscreen to appear on every launch.
   
   This is an android activity thing that android developers generally have to work with. Unfortunately Cordova cannot solve this quirk. Therefore, closing as won't fix.


-- 
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-unsubscribe@cordova.apache.org

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] martin-dufka commented on issue #755: App Restart when capture image from camera

Posted by GitBox <gi...@apache.org>.
martin-dufka commented on issue #755:
URL: https://github.com/apache/cordova-plugin-camera/issues/755#issuecomment-909688592


   Try cordova-plugin-background-mode plugin to prevent garbage your app after switching to camera app


-- 
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-unsubscribe@cordova.apache.org

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] vijayvagdiya commented on issue #755: App Restart when capture image from camera

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


   already try with this but not working and app crash by this plugin
   
   <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
   Virus-free.
   www.avast.com
   <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
   <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
   
   On Wed, Sep 1, 2021 at 3:51 AM Dalm ***@***.***> wrote:
   
   > Try cordova-plugin-background-mode plugin to prevent garbage your app
   > after switching to camera app
   >
   > —
   > You are receiving this because you authored the thread.
   > Reply to this email directly, view it on GitHub
   > <https://github.com/apache/cordova-plugin-camera/issues/755#issuecomment-909688592>,
   > or unsubscribe
   > <https://github.com/notifications/unsubscribe-auth/AESHBUWSH6EOZ7YHL27P6ETT7VIWNANCNFSM5B33MXNQ>
   > .
   > Triage notifications on the go with GitHub Mobile for iOS
   > <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
   > or Android
   > <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
   >
   >
   
   
   -- 
   Thanks & Regards
   Vijay Prajapati
   


-- 
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-unsubscribe@cordova.apache.org

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] martin-dufka commented on issue #755: App Restart when capture image from camera

Posted by GitBox <gi...@apache.org>.
martin-dufka commented on issue #755:
URL: https://github.com/apache/cordova-plugin-camera/issues/755#issuecomment-909688592


   Try cordova-plugin-background-mode plugin to prevent garbage your app after switching to camera app


-- 
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-unsubscribe@cordova.apache.org

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] breautek closed issue #755: App Restart when capture image from camera

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


   


-- 
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-unsubscribe@cordova.apache.org

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