App Bridge Shopify.app.extensions returns "active" when app block is disabled

Our app currently fetches theme files to detect whether or not a merchant has enabled our app’s app blocks as described here and were excited by the release of new app bridge functionality that would make this check much easier. However, while investigating the shopify.app.extensions() return values, it appears the function doesn’t distinguish between the app block being enabled or disabled. Curious if there are plans to add disabled to the status return values?

1 Like

Hi @Jason_Freeman , thanks for the question.

To my knowledge, only App Embeds can be enabled/disabled. App Blocks as a whole don’t have a ‘enabled/disabled’ property (although you could add one in the settings, and the parent section could be enabled/disabled)

If you’re referring to App Embeds, the App Embed would show up as ‘available’ if it’s Disabled (or 'unavailable’ if the conditions for its availability aren’t met)

Were you asking about App Embeds, or is your question different?

Thanks

Bashu

Additionally, since this question was posed, we’ve fixed a bug that was causing disabled App Embeds to show as active.

Clicking the eye icon on the app block

and then saving results in the following json in the product.json:

Despite this setting, querying the extension status using shopify.app.extensions():