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/04/27 20:40:14 UTC

[GitHub] [cordova-plugin-camera] intjose opened a new issue #722: the application closes after taking a photo

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


   # Bug Report
   When I take the photo it does not close, but until I give the popcorn to use it, the application closes, if I take the photo and give it back it does not close, only when I give the popcorn
   
   ## Information
   <!-- Include all relevant information that might help understand and reproduce the problem -->
   only happens in a Motorola G8 Power lite
   - Android 10
   - 4 RAM
   - 48GB free (Storage)
   
   ### Environment, Platform, Device
   Android
   
   ### Version information
   Last Version
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [X ] I searched for existing GitHub issues
   - [ X] 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] breautek closed issue #722: the application closes after taking a photo

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


   


-- 
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] breautek commented on issue #722: the application closes after taking a photo

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


   This can be normal behaviour on Android. Please see the Android quirk below.
   
   > 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
   
   Because the application goes into the background, the OS may kill the activity. When this happens, the Cordova application has to reload the webview. It's up to the developer to handle this scenario. Handling this is [explained here](https://cordova.apache.org/docs/en/dev/guide/platforms/android/index.html#retrieving-plugin-callback-results-cordova-android-510).
   
   You can forcefully test this scenario by enabling "Don't keep activites" in the Android developer settings.
   
   Closing as not a bug.


-- 
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] intjose commented on issue #722: the application closes after taking a photo

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


   You will not have an example application?, I tried it but I still have the same problem, the problem is with the native camera of the device if I install another camera app it does not close and everything works fine, I just want an example code to see if I put something wrong


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