You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "bilalsaeed (via GitHub)" <gi...@apache.org> on 2023/09/26 13:05:37 UTC
[GitHub] [cordova-plugin-camera] bilalsaeed opened a new issue, #857: app crashes on iOS 16.x when app is minimized while camera is open
bilalsaeed opened a new issue, #857:
URL: https://github.com/apache/cordova-plugin-camera/issues/857
# Bug Report ionic app crashes on iOS 16.x when app is minimized while camera is open
## Problem
We are seeing weird problems in our ionic app for iOS. When we minimize the app while the camera was open, and open another app which accesses the camera our app crashes. We are only seeing this behaviour on iOS devices running 16.x+.
Our app crashes when we follow following steps:
1. Access camera in your cordova app
2. Minimize your app while the camera is open.
3. Open "Camera" app or any other app that accesses the camera and capture photo
4. Minimize the app you opened in 3rd step
5. Reopen your app and it crashes
### What is expected to happen?
When app minimizes it should close the camera,
### What does actually happen?
App crashes.
### Environment, Platform, Device
<!-- In what environment, on what platform or on which device are you experiencing the issue? -->
Tested on
iPhone 12 (16.6.1),
iPhone SE 2020 (16.1)
### 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.
-->
Latest version of cordova ios and android.
camera plugin version: 6.0.0
## 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
- [x] 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.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] bilalsaeed commented on issue #857: app crashes on iOS 16.x when app is minimized while camera is open
Posted by "bilalsaeed (via GitHub)" <gi...@apache.org>.
bilalsaeed commented on issue #857:
URL: https://github.com/apache/cordova-plugin-camera/issues/857#issuecomment-1735580372
> > # Bug Report ionic app crashes on iOS 16.x when app is minimized while camera is open
> > ## Problem
> > We are seeing weird problems in our ionic app for iOS. When we minimize the app while the camera was open, and open another app which accesses the camera our app crashes. We are only seeing this behaviour on iOS devices running 16.x+.
> > Our app crashes when we follow following steps:
> >
> > 1. Access camera in your cordova app
> > 2. Minimize your app while the camera is open.
> > 3. Open "Camera" app or any other app that accesses the camera and capture photo
> > 4. Minimize the app you opened in 3rd step
> > 5. Reopen your app and it crashes
> >
> > ### What is expected to happen?
> > When app minimizes it should close the camera,
> > ### What does actually happen?
> > App crashes.
> > ### Environment, Platform, Device
> > Tested on iPhone 12 (16.6.1), iPhone SE 2020 (16.1)
> > ### Version information
> > Latest version of cordova ios and android. camera plugin version: 6.0.0
> > ## Checklist
> >
> > * [x] I searched for existing GitHub issues
> > * [x] I updated all Cordova tooling to most recent version
> > * [x] I included all the necessary information above
>
> I used background-mode plugin for correct this problem no Android. I think it works on IOS too.
Could you please let me know how did background-mode plugin solve the problem?
Thanks,
--
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] bilalsaeed commented on issue #857: app crashes on iOS 16.x when app is minimized while camera is open
Posted by "bilalsaeed (via GitHub)" <gi...@apache.org>.
bilalsaeed commented on issue #857:
URL: https://github.com/apache/cordova-plugin-camera/issues/857#issuecomment-1735507196
is it possible to just close the camera when app is minimize i.e., when platform is stopped?
--
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
Re: [I] app crashes on iOS 16.x when app is minimized while camera is open [cordova-plugin-camera]
Posted by "breautek (via GitHub)" <gi...@apache.org>.
breautek commented on issue #857:
URL: https://github.com/apache/cordova-plugin-camera/issues/857#issuecomment-1746779184
Are you able to provide a back trace or a stack trace? If this information isn't available, then the best way to move this forward is to provide a [bare reproduction app](https://github.com/apache/cordova-contribute/blob/master/create-reproduction.md) using nothing but the cordova camera plugin and anything else required to reproduce the crash. It should not contain any frameworks which helps isolate the issue down to just Apache Cordova code.
Also are you sure that your app simply isn't closing because it's in the background? OS reserves the right to close background apps for variety of reasons, a common one is to provide more resources to the foreground app. In this case, then the app is terminated (not crashed) and will be restarted when the user returns to the 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] thiagoroc commented on issue #857: app crashes on iOS 16.x when app is minimized while camera is open
Posted by "thiagoroc (via GitHub)" <gi...@apache.org>.
thiagoroc commented on issue #857:
URL: https://github.com/apache/cordova-plugin-camera/issues/857#issuecomment-1735561375
> # Bug Report ionic app crashes on iOS 16.x when app is minimized while camera is open
> ## Problem
> We are seeing weird problems in our ionic app for iOS. When we minimize the app while the camera was open, and open another app which accesses the camera our app crashes. We are only seeing this behaviour on iOS devices running 16.x+.
>
> Our app crashes when we follow following steps:
>
> 1. Access camera in your cordova app
> 2. Minimize your app while the camera is open.
> 3. Open "Camera" app or any other app that accesses the camera and capture photo
> 4. Minimize the app you opened in 3rd step
> 5. Reopen your app and it crashes
>
> ### What is expected to happen?
> When app minimizes it should close the camera,
>
> ### What does actually happen?
> App crashes.
>
> ### Environment, Platform, Device
> Tested on iPhone 12 (16.6.1), iPhone SE 2020 (16.1)
>
> ### Version information
> Latest version of cordova ios and android. camera plugin version: 6.0.0
>
> ## Checklist
> * [x] I searched for existing GitHub issues
> * [x] I updated all Cordova tooling to most recent version
> * [x] I included all the necessary information above
I used background-mode plugin for correct this problem no Android. I think resolved on IOS. I think it works on IOS 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