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 [email protected]. To unsubscribe, please send an email to: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
