Copy link to clipboard
Copied
Is it possible to listen for webhooks in an AIR app ?
Copy link to clipboard
Copied
Hi,
webhooks usually refer to a third party server calling your server to give you an update on something. Since Air is a client-side technology and not a server-side technology, webhooks can not be sent to Air. I think you misunderstood something when you were reading the documentation of a service.
Maybe let us know what exactly you are trying to do and we can give some more advice how that might work with Air.
Copy link to clipboard
Copied
Hello,
Im trying to figure out what can be done with a webook being sent from 3rd party API to my server URL.
From there... can my server after it receives the information pass it on to the user logged in to my app to trigger code in my app?
Copy link to clipboard
Copied
This should be no problem if you already have a server and user authentication / sessions. Say the webhook calls your server for user A. Your server stores in your database or in the user session the information. Next time user A comes online or sends a request to your server, you check the session / database for webhook information. Then in your response you add the information of the webhook and user A can use it.