App Bridge React - How to check if we are in an Shopify iFrame, or in the native mode?

Highlighted
Shopify Partner
56 0 2

What is the best way to check if an shopify app is embedded in the Shopify admin, if it is run standalone, or embedded in the mobile app?

 

There seems to be no good docs on the App Bridge React right now and also the source code is not yet available.
Has anybody figured something out already?

0 Likes
Highlighted
Shopify Partner
56 0 2

Has no one faced this before?

0 Likes
Highlighted
Shopify Partner
56 0 2

Any hints?

0 Likes