Camera sometimes stops working
Problem description
When locking the device or bringing the app in the background and then back in the foreground, the camera view might freeze (only happens sometimes). Attempting to capture a picture in this state fails with:
Error: Cannot Record
Might be related to restarting the app using the reload button.
Expected behavior
The CameraView should always resume operation when the app becomes active.
Environment
- Tabris.js version: 3.5.0
- Device: iPad A2197
- OS: iOS 13.6
Code snippet
Use the camera snippet: https://github.com/eclipsesource/tabris-js/blob/master/snippets/camera.tsx
I've not been able to reproduce it. I tried taking an app to background as well as locking the screen. iOS 13.5 and 13.6. I also made some attempts without debugger connected. Any other circumstances which could make it easier to reproduce the issue?
I haven't been able to reproduce it either.