If a store owner cancels its Shopify plan or closes its shop, the installed apps will not receive a app/uninstalled webhook.
If the app is then sending a HTTP request to the shop, it will return a 404 or 402 error.
I would like to know if Shopify i going to send the app/uninstalled webhook eventually after some time?
You won’t get an app/uninstalled webhook for a frozen or canceled shop because it’s possible that the store gets reactivated at a future date and the app would still be installed.
What’s worked for me though is to subscribe to the shop/update webhook and look at the plan_name field. If it’s one of these values the shop isn’t open anymore:
frozen
cancelled
fraudulent
There’s also a dormant value which you might want to check for. That’s when a store is paused.
We have seen lots of cases where a store marked with a plan “frozen” or “cancelled” in a shop/update webhook reopens after weeks or months. Anyway, the time until it reopens, it completely works as a closed store, with no online store and no access to the APIs.