Flutter and IFTTT

What is IFTTT

IFTTT, which is short for If This Then That, is the easiest way to do more with hundreds of the apps and devices you love, including Twitter, Dropbox, Evernote, iRobot, Fitbit, Amazon Alexa, and Google Assistant etc.

How IFTTT work?

A user needs to get acquainted with the creation of applets to use this app. An applet refers to a trigger-to-action relationship responsible for performing a particular task. A user can also create an applet to receive personalized notifications when specific conditions are met. After activating an applet, the user need not remember the commands, as IFTTT handles everything. The user also can also turn an applet on or off and edit the settings. A simple example of an applet is, if it is 1:00 PM, then turn off the bedroom lights.

Example App: Send Gmail email from Flutter

To demonstrate the power of this platform, imagine a scenario where user sends us a feedback via the app and we want to be notified about this feedback via email or twitter or any other service. The main advantage of using IFTTT is that, we can skip using some third party plugins in our application which (might) later break our code for example, if we want to send an email, we would need a flutter plugin that does that. So our simple flow is, If user sends feedback, then notify us via gmail.

IFTTT Setup

If you don’t have an IFTTT account already, sign up for free.

About Webhook Service

Receive a web request. This trigger fires every time the Maker service receives a web request to notify it of an event. With this, we endless opportunities to connect to other services as we will make a web request to our service url from anywhere, be it via website, mobile app or your IoT devices. We will use http library to connect to this webhook service, just hang in there.

Webhook URL

Show me the Code

Enough with stories, lets create a flutter app and connect all this in one and send yourself a feedback to your gmail from your flutter app

More on IFTTT

Here i demonstrated a working demo with Gmail, but with IFTTT, you can hook up almost any service. This is handy when you cant find a plugin that connects directly to the service you want. Want to populate a google sheet from your app? Look for its service and configure it.
Doing a smart home automation project? You might find IFTTT to be very handy. Want to save a file to Dropbox or GDrive instead? Configure its service.
IFTTT sure opens up numerous doors to connect our projects to other popular services out there. Thats it from me ✌. Happy Fluttering

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Donald Chinhuru

Donald Chinhuru

An Undergraduate student studying towards BEng in Electronic Engineering with a keen interest on Software development. Currently pursuing everything Flutter 💙