Topics covering webhook creation & management, event handling, Pub/Sub, and Eventbridge, in Shopify apps.
I've created a new app for my shopify store. And seen that the app/uninstalled webhook called automatically, though I ain't uninstalled the app from my store.
Can anyone please tell me what is the problem? Why shopify uninstall webhook called automatically?
I was recently experiencing this too. Very strange but the key thing I learned is to code defensively. Don't solely rely on the webhooks to trigger database actions. See below for my defensive coding practice. Particularly point #3 pertains to your question.
Hi Celso White,
How can I check if access token is valid?
Hi Leonan, to check if the access token is still valid I do a test api call. You can use pretty much any of the methods. I find the simplest is to do a get request for the users profile info. If the API returns that users info then you still have a valid access token for the shop. If not then the API will return an error (no permission).