POS showCameraScanner displays dark screen after navigate

POS modal code snippet:

import "@shopify/ui-extensions/preact";
import { render } from "preact";

export default () => {
  render(<Extension />, document.body);
};

function Extension() {
  if (navigation.currentEntry.url === "/camera") {
    return (
      <s-page heading="Camera page">
        <s-stack rowGap="large">
          <s-text>
            Sources: {shopify.scanner.sources.current.value.join(", ")}
          </s-text>
          <s-button
            onClick={() => {
              shopify.scanner.showCameraScanner();
            }}
          >
            Show camera
          </s-button>

          <s-button
            onClick={() => {
              shopify.scanner.hideCameraScanner();
            }}
          >
            Hide camera
          </s-button>
        </s-stack>
      </s-page>
    );
  }

  return (
    <s-page heading="Initial page">
      <s-button
        onClick={() => {
          navigation.navigate("/camera");
        }}
      >
        Go to camera
      </s-button>
      <s-text>
        Sources: {shopify.scanner.sources.current.value.join(", ")}
      </s-text>
    </s-page>
  );
}

Reproduction steps:

  1. In iOS/iPadOS Open POS UI extension modal in the smart grid or customer details. Although, I suspect other targets are affected, too.
  2. Click “Go to camera” to navigate to the camera page
  3. On the “Camera page” click “Show camera”

Result: camera opens, but isn’t functional, see the screenshot below.

Note that the camera works fine if opened from the initial page, i.e. it works when using the following snippet:

import "@shopify/ui-extensions/preact";
import { render } from "preact";

export default () => {
  render(<Extension />, document.body);
};

function Extension() {
    return (
      <s-page heading="Camera page">
        <s-stack rowGap="large">
          <s-text>
            Sources: {shopify.scanner.sources.current.value.join(", ")}
          </s-text>
          <s-button
            onClick={() => {
              shopify.scanner.showCameraScanner();
            }}
          >
            Show camera
          </s-button>

          <s-button
            onClick={() => {
              shopify.scanner.hideCameraScanner();
            }}
          >
            Hide camera
          </s-button>
        </s-stack>
      </s-page>
    );
}

I suspect the issue was introduced in one of the recent Shopify POS versions. The app was last updated on the 15th of September and it used to work fine. It works fine on the latest Android Shopify POS version.

API version: 2026-01

Hi @Galmis — if the camera only goes dark after `navigation.navigate()` but works from the initial page, and Android is fine, that looks like a POS iOS host regression rather than your extension code. Shopify’s team owns that. One thing worth checking: after navigating, does `shopify.scanner.sources.current.value` still list a camera source, or is it empty? An empty array would mean the scanner view never re-attached post-navigation. Rendering the camera page from local state instead of navigation can help confirm the trigger. Which POS app version and iOS version are you on?

Hi @zeeshan_haider. Thanks for taking a look.

The camera source is still listed as shown in the screenshot attached to the issue description.

I’m using the latest version of Shopify POS 11.16.4

Can you try updating the a newer API version?

Can you also check in connectivity, if the app has camera permissions?

Hey @JordanFinners. Thanks for taking a look. It’s nice to see Shopify partners trying to help more than the staff. I truly appreciate it!

The app has camera permissions. It wouldn’t work if loaded from the initial page, otherwise. The app’s customer reported the issue after upgrading to Shopify POS version 11.16.4. They use multiple devices, and all of them are affected. I can also reproduce the issue on my iPad using the latest Shopify POS.

The issue isn’t occurring on API version 2026-07, but I can’t hide the camera scanner automatically anymore POS 11.6.1 Breaking Changes: Native Overlay Dismissal (hideCameraScanner / window.close) and Full-Screen Camera Scanner - #24 by Galmis . Looks like API version 2026-04 has the same issue, so there’s no API version where the camera scanner works reliably.

I was hoping this would get fixed, but now I plan to release a change and show the camera on the initial page. It’s not the best UX for my app, but at least it works.

Can I ask which target type you are using here?
I’ve got this working on a tile

  1. Target types for this issue are listed in the reproduction steps (smart grid modal and customer details action).
  2. I’m having the issue with hideCameraScanner in the customer details action only (no issues in the smart grid modal).

Hey all, this is a real bug in 2026-01. It has been identified and it’s fix will be applied in a future release. For now, please use a more recent API version.

I’ll be looking into the hideCameraScanner shortly. Follow-ups will be posted in POS 11.6.1 Breaking Changes: Native Overlay Dismissal (hideCameraScanner / window.close) and Full-Screen Camera Scanner

Thank you for reporting all of this in great detail @Galmis , and thank you for assisting @JordanFinners & @zeeshan_haider

I released a new version of the app approx. 23 hours 45 min ago, but according to the app logs, some users are still on the previous version. What’s the least destructive way to force-update the cache? I suggested force-closing Shopify POS, but I’m not 100% sure it’s reliable. Also, what’s the TTL? Is it documented anywhere?

I’m getting more reports from customers still affected by this.

I normally ask them to go to Connectivity > Shopify > Refresh. Then restart the device, not sure it’s bulletproof but normally works enough.