0

We required replication of an existing Shopify Custom App. We do not have access to the keys and therefore require rebuild/redefinition of

  1. Webhooks
  2. Metafields/MetaObjects

The ability to re-generate these under a new app is possible.

Questions:

  1. When un-installing a custom app in Shopify do the webhook subscriptions and all meta fields get removed with the uninstallation?
  2. How does this affect existing data in the system (e.g. metafield data that has been stored)

Concerns: If we remove the app then what happens to the metafields and associated data from existing orders If the data stays then how does a new app access the data since it's in a different namespace...?

UPDATE: Custom App should have their own cleanup procedure: https://community.shopify.dev/t/metafields-metaobjects-definitions-with-reserved-namespace-left-after-app-uninstall/2322

After some testing it seems that a separate app that defines the same metafields will create a duplicate in different namespace.

The question still remains:

If a custom app removes meta definitions what happens to the data associated to those definitions in Shopify. Does it persist (so if the app were to 'redefine' the metafields the data would re-appear) or get removed.

1 Answer 1

0

When you uninstall a custom app in Shopify, the webhooks created by that app are removed. However, Metafields/MetaObjects persist even after the app is uninstalled.

If you reinstall the app, the webhooks are recreated, and the old Metafields/MetaObjects remain accessible to the shop. However, if the shop tries to create new Metafields/MetaObjects with the same name, an error will throw.

Additionally, if those Metafields/MetaObjects are owned by the shop, they will be removed upon uninstallation.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for your reply. This may be the case for 'Apps' within the store BUT for custom apps (created using the 'Apps & Sales channels' => Develop Apps section) I believe the app namespace is the fundamental point here. Once a custom app is removed the namespace is also removed. Recreating it will not re-link old namespaces. The data is probably still present but under different namesapce. That is what I have found.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.