You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "leonelgregioauler (via GitHub)" <gi...@apache.org> on 2026/06/19 19:41:35 UTC

[D] The app crashes immediately after taking a photo. (ANDROID) [cordova]

GitHub user leonelgregioauler created a discussion: The app crashes immediately after taking a photo. (ANDROID)

Hello @breautek !! 
I hope you're doing well.

I need a help !!

Only one Android version (among several) causes this issue. I have to open the application again !! 

    **Galaxy S20 FE SM-G780G/DS**

I am using the latest versions of the Cordova and camera plugins. 

Thanks in advance !

GitHub link: https://github.com/apache/cordova/discussions/590

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


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


Re: [D] The app crashes immediately after taking a photo. (ANDROID) [cordova]

Posted by "breautek (via GitHub)" <gi...@apache.org>.
GitHub user breautek added a comment to the discussion: The app crashes immediately after taking a photo. (ANDROID)

If it's a crash then we will need the stacktrace found in android's logcat. If it's an actual crash -- then the discussion cannot continue without the stacktrace.

But more than likely it's just the activity (android's term for your app's UI) is closing to ease device memory pressure. This can happen while your app is in the background, as is the case when the camera is active. If the OS kills your app's activity, when the user moves back to your app after they are done using the camera, your app will reload from scratch -- but the camera's response will be attached to the `resume` event under the `pendingResult` property. See the docs for more details on this: https://cordova.apache.org/docs/en/latest/guide/platforms/android/index.html#retrieving-plugin-callback-results-cordova-android-510

So if you're not using the `resume` event, then I would also confirm that your issue is not simply the lack of handling android's lifecycle. 

GitHub link: https://github.com/apache/cordova/discussions/590#discussioncomment-17370714

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


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


Re: [D] The app crashes immediately after taking a photo. (ANDROID) [cordova]

Posted by "leonelgregioauler (via GitHub)" <gi...@apache.org>.
GitHub user leonelgregioauler added a comment to the discussion: The app crashes immediately after taking a photo. (ANDROID)

I need to access this mobile phone; I will be in touch with the owner soon and will perform the debugging.
After that, I can come back here.

GitHub link: https://github.com/apache/cordova/discussions/590#discussioncomment-17486670

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


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


Re: [D] The app crashes immediately after taking a photo. (ANDROID) [cordova]

Posted by "leonelgregioauler (via GitHub)" <gi...@apache.org>.
GitHub user leonelgregioauler closed a discussion: The app crashes immediately after taking a photo. (ANDROID)

Hello @breautek !! 
I hope you're doing well.

I need a help !!

Only one Android version (among several) causes this issue. I have to open the application again !! 

    **Galaxy S20 FE SM-G780G/DS**

I am using the latest versions of the Cordova and camera plugins. 

Thanks in advance !

GitHub link: https://github.com/apache/cordova/discussions/590

----
This is an automatically sent email for issues@cordova.apache.org.
To unsubscribe, please send an email to: issues-unsubscribe@cordova.apache.org


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