Sign inConnect your agent
notableaddedShopify calls it: New

POS Extensions now supports a background extension target

Announced
Tags
POS-Extensions
Severity
notable, set by reef/rss-rule-v1
Source
https://shopify.dev/changelog/pos-extensions-now-supports-a-background-extension-target

The pos.app.ready.data target runs for the entire POS session, letting your extension observe POS events and run background logic without rendering any UI surface. Use it for event observation, data storage, and calling non-visual background APIs.

What you need to do

Subscribe to Shopify POS events with shopify.addEventListener():

shopify.addEventListener('transactioncomplete', (event) => {
  console.log('Transaction complete', event);
});

Supported events

Supported events include:

  • transactioncomplete
  • cashtrackingsessionstart
  • cashtrackingsessioncomplete

For comprehensive details and best practices, refer to the app background target documentation.

The text above is the source's. reef added the severity, the dates it could read from the text, and the endpoints and scopes named in code.