html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

Video missing after app switch on iOS

Open DennisNurtio opened this issue 2 years ago • 4 comments

Describe the bug When the component is used on a page which is added to the Home Screen of a iPhone, the scanner malfunctions when you switch away from the app. The same behavior does not occur when you view the same page through Safari (this works correctly).

To Reproduce Steps to reproduce the behavior:

  1. On iPhone, open https://scanapp.org/ in Safari
  2. Click on 'Add to Home Screen'
  3. Close Safari and open the 'ScanApp' app through the new icon on the Home Screen
  4. Give permissions and start scan. Wait until scanner is operational.
  5. Push the hardware button to return to the Home Screen
  6. Click the 'ScanApp' icon again
  7. Video is now gone, and scanner visuals are overlaying the whole page

Expected behavior After returning to the app the scanner should still be operational, just like the same page in Safari.

Screenshots After switching: IMG_20220801_102704

Smartphone (please complete the following information):

  • Device: iPhone7 & iPhone 12 Pro
  • OS: iOS 15.6 & 15.5
  • Browser Safari

Additional context

  • Behavior reproduces in own app using the 'Html5Qrcode' component. Reopening the view will re-request camera permissions, which fixes the issue. No 'onScanFailure' or exception is observed.
  • Same issue cannot be reproduced on Android.
  • Same issue occurs when you swipe the notificationbar down and up.

DennisNurtio avatar Aug 01 '22 09:08 DennisNurtio

Same issue on iPod Touch and iPad Mini.

dicktornfeldt avatar Aug 23 '22 15:08 dicktornfeldt

Also confirmed with iPhone 8 & 13. Also reproducable after upgrade to iOS 15.7.1.

denxorz avatar Nov 10 '22 16:11 denxorz

@mebjas Is there anything more we can add to this issue to make it more clear?

denxorz avatar Nov 10 '22 16:11 denxorz

Is this ever going to be fixed? On iOS 16 I'm having the same behaviour. Trying to upgrade to 17 to see potential impact...

dirkvranckaert avatar Oct 05 '23 21:10 dirkvranckaert