I want the store name inside my embedded app, is there a way to do it without using the REST API.
Can it be done via Shopify App Bridge? I saw somewhere it was available in v2 under store information but I can’t seem to find it under the getState() now, I am using v3
For v3 of the App Bridge, I think you will need to use a REST API endpoint to retrieve the store name. With App Bridge, you can use the authenticatedFetch function to make this request securely from your app - it could look something like:
This code initializes your App Bridge app, then uses the authenticatedFetch function to make a GET request to the shop.json endpoint. The response is a JSON object, from which you can extract the shop name.