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:
- In iOS/iPadOS Open POS UI extension modal in the smart grid or customer details. Although, I suspect other targets are affected, too.
- Click “Go to camera” to navigate to the camera page
- 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
