app/uninstalled Webhook - How am I suppose to clean up Shopify when token is invalid immediately?

Solved

app/uninstalled Webhook - How am I suppose to clean up Shopify when token is invalid immediately?

StanWW
Shopify Partner
1 0 1

My app is essentially a re-selling app, without the app the process of selling the items that were created with App would simply not work because it creates and uses Location, Fulfillment and Tracking custom to those items. (End-item is produced and shipped by the App company).

 

Now, how am I suppose to clean up after the app is uninstalled? I need to remove these Shopify services from the store but that is not the biggest problem. I also need to mark all the items in Shopify of that specific type as "drafts" or "archived" because as I stated before - buying them without extension installed will cause an error.

 

Is there really no way to handle this? I assume I am not the only one who has this kind of app on Shopify.

Accepted Solution (1)

JayAdra
Shopify Partner
132 14 32

This is an accepted solution.

No great solutions here. Best you can do is have an "uninstall" option inside your app which cleans all this up, and then directs the merchant to uninstall the app in Shopify afterwards.

 

And when they uninstall the app itself, send them an automated email telling them to make sure they completed this cleanup process first.

 

Can't suggest anything more without knowing specifics, but yeah it's an unfortunate limitation with access tokens being revoked immediately.

View solution in original post

Reply 1 (1)

JayAdra
Shopify Partner
132 14 32

This is an accepted solution.

No great solutions here. Best you can do is have an "uninstall" option inside your app which cleans all this up, and then directs the merchant to uninstall the app in Shopify afterwards.

 

And when they uninstall the app itself, send them an automated email telling them to make sure they completed this cleanup process first.

 

Can't suggest anything more without knowing specifics, but yeah it's an unfortunate limitation with access tokens being revoked immediately.