Environment
The Environment API provides utilities for information regarding the environment an embedded app is running on.
Anchor to environmentEnvironment
The environment
API is available on the shopify
global. It contains information about the current environment an embedded app is running on.
Anchor to embedded
embedded
boolean
Whether the app is embedded in the Shopify admin.
Anchor to mobile
mobile
boolean
Whether the app is running on Shopify Mobile.
boolean
Whether the app is running on Shopify POS.
Was this section helpful?
Environment
shopify.environment;
// => { mobile: false, embedded: true, pos: false }