Skip to main content

Environment

The Environment API provides utilities for information regarding the environment an embedded app is running on.

The environment API is available on the shopify global. It contains information about the current environment an embedded app is running on.

boolean

Whether the app is embedded in the Shopify admin.

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 }