When User Uninstall my app from his Store I want to get data of that store on my App

Usama788
Shopify Partner
9 0 1

Hey, hope you are doing well.
I have one Custom App that performs basic operations using API's. When user uninstall my app from his store, i want to get data of that store on my app. So will you please share an idea about how to get that data on my store or anything that will be helpful related to that query. Thanks in advance

Replies 5 (5)

hardik355
Shopify Partner
235 22 35

Hello @Usama788 

 

Shopify provides a webhook when any store uninstalls your app so you will receive a webhook where all details you want. Check this link.

https://shopify.dev/docs/api/admin-rest/2022-04/resources/webhook

 

If helpful then please Like and Accept Solution.
For App Development and Design changes Hire Me.
Skype: live:hardikradadiya355
Thanks
Usama788
Shopify Partner
9 0 1

I tried that also but after app uninstallation from my store it does not send store data even after 4-5 hours?

 

PaulNewton
Shopify Partner
6275 573 1323

Get the data BEFORE uninstall.

Work under the assumption the app will not have the access to the required data for the uninstall, so pre-emptively get priority data required for uninstallation.

Save time & money ,Ask Questions The Smart Way


Confused? Busy? Get the solution you need paull.newton+shopifyforum@gmail.com


Problem Solved? ✔Accept and Like solutions to help future merchants

Answers powered by coffee Buy Paul a Coffee for more answers or donate to eff.org


Usama788
Shopify Partner
9 0 1

How to get data before uninstall?

Actually when app gets installed into shopify store i have all relevant details of store that are saved in my database. But i just want to get store details like store name or store code into specific url when app gets uninstalled from that store so i delete that store data from my database

Wakil_eFoli
Shopify Partner
36 1 5

@Usama788 You're saving the stores information in the db when the app is installed. Can you please tell me how do trigger this action upon the installation?