A new Liquid app object is available for use within the context of theme app extensions and app proxies. The app object can be used to access an app’s metafields.
I am sure I have created the metafield with the correct AppInstallation ID, since I get a result to this GraphQL query:
{
currentAppInstallation {
metafield(namespace: "settings", key: "test") {
value
}
}
}
Response:
Array
(
[currentAppInstallation] => Array
(
[metafield] => Array
(
[value] => test value
)
)
)
I’m also sure that I’m using the theme app extension liquid file and not a regular theme liquid file to access the variable value with {{ app.metafields.settings.test }}
I’m using 2022-10 API version on a development store and my app extension has DEVELOPMENT STORE PREVIEW option enabled.
Do I need to do something special to enable app-owned metafields access?