I’m building a Shopify app and I want to find a reliable way to fetch all active apps installed in a merchant’s store, especially those that are embedded in the theme (like apps adding app blocks or script tags).
Let’s say a merchant installs multiple apps that inject theme code or add app blocks , I want to automatically detect which ones are active and possibly where they’re used in the theme.
Hey @Jaseem_V , you can use this query to pull installed applications:
You would need approval from us directly though (on a case by case basis) and would have to reach out to support for assistance with that. That said, there’s not an easy way to pull app blocks/theme code info without having direct access to the theme itself.
As long as you’re just reading theme information though, you could use the Asset API to retrieve some config info on theme embeds and compare it against the list of apps returned by the GraphQL query:
Hope this helps, let me know if I can clarify anything on our end here.
If they plan to become a public app they need to add the scope to their toml file before requesting approval. I’m not sure why the bot thinks this is a restricted scope. I can add it myself as a custom app on my store.
If they try to add the scope to their toml file and it throws an error let us know.”
but it is wrong . we need the access to that scope
Hey @Jaseem_V - thanks for reaching back out. Would you be open to sharing your app ID? I can take a look into this on our end here and loop back with you via DM.