Push Notifications
Sometimes it is useful to alert a user in real-time on their smartphone. In this case, we can use push messages with IFTTT and web hooks. This tutorial explains how.
Last updated
Was this helpful?
Sometimes it is useful to alert a user in real-time on their smartphone. In this case, we can use push messages with IFTTT and web hooks. This tutorial explains how.
Last updated
Was this helpful?
Watch this video where I walk you through the process of setting up and integrate it with our JavaScript code:
Type "webhook" into the search field in the upper-left corner and hit enter. In the results, click on the services tab and click on the box with the label "Webhooks".
In the opening page, you should a "settings" symbol in the upper-right corner. Click this symbol to activate or deactivate your webhook-URL. Copy the URL into your browser to open the documentation page.
You can copy the following function to call your IFTTT webhook from JavaScript. The function uses the fetch()
function to make an HTTP POST request to the URL specified in the IFTTT documentation. The function expects you to pass your personal key and the event name that should be sent. Additionally, you can pass 3 possible parameter values to provide more information.
Navigate to the within IFTTT. You should see the following image: