Hi everyone,
We’re building a PWA SaaS platform and developing a Shopify app with the goal of turning a merchant’s store into an installable Progressive Web App (PWA) after installing our app.
To achieve this, we need to inject two files into the merchant’s theme automatically:
manifest.json
sw.js
(Service Worker)
Our current approach:
We’re using the GraphQL API with the themeFilesUpsert
mutation to write these files into the theme directory. However, we encountered this error:
json
复制编辑
{
"message": "Access denied for themeFilesUpsert field. Required access: The user needs write_themes and an exemption from Shopify to modify theme files.
If you think that your app is eligible for an exemption and should have access to this API, then you can [submit an exception request](https://docs.google.com/forms/d/e/1FAIpQLSfZTB1vxFC5d1-GPdqYunWRGUoDcOheHQzfK2RoEFEHrknt5g/viewform)."
}
We’ve already requested the write_themes
scope and submitted the form linked in the error message, but haven’t received any response for weeks.
We’d really appreciate guidance on:
- Is there any other way to inject these files (e.g., ScriptTag API or App Proxies)?
- Has anyone successfully obtained an exemption for
themeFilesUpsert
? How long did it take? Any tips to expedite approval? - Would using a Theme App Extension + App Proxy be a better approach for manifest and service worker injection?
We’re committed to developing in a compliant, responsible way — we won’t make destructive changes to the theme, and we aim only to improve mobile performance and user experience.
Thanks in advance for any advice or experience you can share!