woocommerce / woocommerce-ios

WooCommerce iOS app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
301 stars 109 forks source link

[SKU Scanner] Scanner unusable when multitasking/using splitview on iPad #9990

Open lmischner opened 1 year ago

lmischner commented 1 year ago

Describe the bug When Woo is one of two apps used when multitasking and the merchant tries to use the new scanning functionality to add a product to an order, the camera does not respond and just shows a white or black box, depending on whether light or dark mode is in use.

To Reproduce Steps to reproduce the behavior:

  1. Open Woo app/login
  2. Use the three dot button to multi-task with another app
  3. Open the product scanner (either from the orders list or from within a new order)
  4. Note camera does not work

Screenshots image

Expected behavior Camera should work regardless of whether splitview is being used

Isolating the problem (mark completed items with an [x]):

Mobile Environment Please include:

toupper commented 1 year ago

More information after investigation: As we can read here, camera access on iPad is normally limited to apps running in full-screen mode. If the app enters a multitasking mode the system disables the camera by default before iPadOS16. From iPadOS16 onwards we can enable camera while multitasking, but we need the minimum deployment target to be iPadOS16 according to this answer.