After changing the app handle in the TOML configuration file, shopify.app.extensions() no longer reports the theme extension as active. Instead, the extension status is returned as inactive (false), and the activations array is empty.
The theme extension is definitely active in the store, so this behavior appears to be incorrect.
Could you please investigate why shopify.app.extensions() returns an inactive status and an empty activations array after the app handle change?
Hi @Levente_Kovacs
Could I ask why the handle value needs to be updated? You can try clearing the handle value and redeploying to see if it works.
Because our app will be rebranded, we would also like to change the app handle.
Any updates on this issue?
Hey @Levente_Kovacs - thanks for reaching out.
I did some digging here. One important detail to confirm first: did the app name/title change as part of the rebrand, or only the handle value in the TOML file?
The reason I’m asking is that shopify.app.extensions() reads theme app extension activation data from the store’s published theme: App API. For theme app blocks and embeds, the published theme stores a reference that includes a slug based on the app’s title/name. If the app title changed during the rebrand, the published theme can still have the old stored reference, while the current extension metadata points at the new title/name slug. In that case, the block can show as available/inactive with an empty activations array.
If only the TOML handle changed and the app name/title stayed the same, this may be a different issue and we’d want to look closer.
As a quick diagnostic, can you redeploy and re-check shopify.app.extensions() against the published theme? If it still returns inactive with an empty activations array, the main workaround is to remove and re-add the app block/embed in the theme editor. That should hopefully rewrite the stored theme reference using the current app title/name.
Let me know if this helps!