New pos.app.ready.data Target Enables Background Logic in Shopify POS
Subscribe to Shopify POS events using shopify.addEventListener in the pos.app.ready.data target to run background logic without rendering UI.
Subscribe to the supported events in the pos.app.ready.data target using shopify.addEventListener to handle transactioncomplete, cashtrackingsessionstart, and cashtrackingsessioncomplete.
Summary
Shopify has introduced the pos.app.ready.data target for POS UI extensions. This target runs for the entire POS session, allowing extensions to observe events and execute background logic without rendering any UI surface. Developers can subscribe to POS events using shopify.addEventListener, enabling event handling for transactioncomplete, cashtrackingsessionstart, and cashtrackingsessioncomplete.
The target is ideal for event observation, data storage, and calling non‑visual background APIs. It does not require any UI rendering, making it suitable for background tasks that need to run throughout a POS session.
Documentation for the app background target provides comprehensive details and best practices for using this new feature.
Key changes
- pos.app.ready.data target runs for entire POS session
- Allows observing events and running background logic
- Use shopify.addEventListener to subscribe to events
- Supported events include transactioncomplete, cashtrackingsessionstart, cashtrackingsessioncomplete
- No UI rendering required
- Target is for event observation, data storage, and non‑visual background APIs