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?
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:
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.
@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!
Hi Simo - you only need exempion for write
but read
is okay
Thank you so much for your help, Liam
@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??
I am also looking for same !!