How to Verify Theme App Embed Activation?

Hey everyone, how do you verify that the theme app embed has been enabled without relying on the Assets API? Currently, I’m sending a request from the theme app embed to my app to confirm activation, but the downside is that it only gets triggered when someone visits the store. I feel like there should be a better way any suggestions?

1 Like

As of now, you can detect it only using Asset API. While that is not a bad thing, since reading Assets are not a problem.

You would need to query settings_data.json and check for your app embed.

Here’s a good documentation for it:

3 Likes

Yeah, @Simo_Aissaoui you should be able to utilize the theme part of the GraphQL Admin API to get the details as I shared in this other topic.

2 Likes

@RobDukarski @prakhar thank you guys It worked
I thought I needed an exemption to access the Assets API but it turns out I don’t for querying
Appreciate your help!

2 Likes

Hi Simo - you only need exempion for write but read is okay :slight_smile:

2 Likes

Thank you so much for your help, Liam :saluting_face:

@Liam-Shopify @prakhar Hi,
Since Asset API is now deprecated, what is the alternate method that is followed now to fetch the app embed status??

1 Like

I am also looking for same !!