This API: Scanner API
Is no longer working on IOS with the latest Shopify update (from 15 October)
This is a large regression as barcodes cannot be scanned for apps that use this functionality.
Details here: Shopify App Bridge scanner API no longer working on IOS · Issue #589 · Shopify/shopify-app-bridge · GitHub
Hi @Dylan_Henderson, thanks for the detailed report and the GitHub issue.
I checked with the team and this is a confirmed issue on our side, not anything in your app. The 11.x release of the Shopify mobile app (15 Oct) broke the handoff that opens the camera when an embedded app calls shopify.scanner.capture() which matches your version split. Android 11.x is affected too.
A fix is in progress and is expected to ship in an upcoming Shopify app release. I don’t have a date to share yet however.
I’ll follow up here once there’s more info to share on the fix. Thanks for your patience while we work on this!
Hi @Donal-Shopify
Thank you. Glad a fix is on the way.
On a side note there was another recent Scanner API regression with IOS that may be worth looking into at the same time.
Gernerally when a user opens the camera for the first time, the app will request permissions and the user can approve. This happens correctly with the Scan Inventory action inside Shopify but stopped working with the Scanner API, customer’s would need to be advised to go edit permissions manually or open the Scan Inventory section. It would be fantastic it that worked again on IOS.
Hi @Dylan_Henderson, following up as promised. The fix for capture() not opening the camera is rolling out in the latest Shopify app update on Android, and another developer on #589 has confirmed it’s working again in 11.2642.1. The iOS update with the same fix is on its way, though I don’t have an exact date for it.
Thanks for flagging the permission prompt too. The team is already aware that capture() doesn’t ask for camera access on first use, and a fix for that is lined up for an upcoming app update. Until then, merchants can turn on camera access for the Shopify app in iOS Settings, or open Scan Inventory once and allow the camera there, and the Scanner API should work after that.
If scanning still fails once merchants have updated the app and granted camera access, post back with the app version and I’ll take another look. Thanks again for reporting!