For a successfully registered webhook, specifically, 'app/uninstalled', how long would it take for the webhook to fire? It doesn't seem it immediately fires. I tried many time and it never fired.
Do you mean the shop/redact webhook? If so, it is invoked 48 hours after app uninstall.
shop/redact: 48 hours after a shop uninstalls your app, Shopify will send an HTTP POST request for the shop/redact topic. Upon receipt of the webhook, the app must delete all customers’ personal information associated with that shop.
Hey there, the 'app/uninstaled' webhook should be firing right after the app is uninstalled
That still doesn't seem to work for some reason.
Here's my code to register the webhook using php-shopify.
What's the name of your app? I'll try installing/uninstalling it and let you know what I see in our logs.
App store listing shouldn't affect this. Feel free to PM me an install link, or follow up here once the app is listed.
My app registers the app/uninstall webhook when the app is installed and it works, but Shopify takes too long to trigger the webhook when the app is uninstalled.
The webhook gets triggered after at least 2 minutes after the app is deleted. Because of this if someone tries to reinstall the app immediately an error will be triggered because the app didn't get to reset the session for that store.
This causes the app submission to fail with this error:
During install or reinstall we expected Oauth to be initiated at https://appstoretest5.myshopify.com/admin/oauth/request_grant but was redirected to https://appstoretest5.myshopify.com/admin/apps/b272ce5950aa539392d0d441e0b51311
Is there any solution for this? I am struggling with this for 2 days now