Back

SMS with Twilio

  • 0
  • Functions
  • Flutter
YahalomS
9 Aug, 2023, 08:44

I am trying to create a function from appwrite to send an SMS from my Flutter application using Twilio. I know appwrite has a built in api to send SMS for phone authentication , but this is not what I need, I want to create customised SMS that will be sent to the user upon request, containing data collected from the app

Everything I found on the web is discussing Appwrite functions and SMSes for authentication, some Youtube videos do refer to sending SMS but with JavaScript, and I am having hard time connecting the dots.... Any help will be appreciated

TL;DR
User is looking for help on creating a function from Appwrite to send custom SMS messages from a Flutter application using Twilio. They have searched online but have only found tutorials on SMS authentication. They are looking for any assistance or guidance. Solution: One user suggests using the Twilio API's REST API to send SMS messages. Another user recommends using the twilio_flutter package for Flutter. However, it is noted that there may not be specific documentation for Dart or Flutter in the Twilio docs. Additionally, a suggestion is made to use Appwrite functions and provide a custom criteria to trigger the function. A link to a blog tutorial on
joeyouss
9 Aug, 2023, 09:03

hi, any chance you saw this and this is of help to you? https://dev.to/appwrite/phone-authentication-with-appwrite-and-twilio-26ek

YahalomS
9 Aug, 2023, 11:32

Thank you for your response, As I mentioned in My post, I have seen this tutorials many time , and they do not help me with my goal, I dont need SMS for auth.

joeyouss
9 Aug, 2023, 12:14

I am searching through twilio docs and I cannot see dart or flutter in their docs but there should be something

ok, how does this sound, you use appwrite functions for this and you said you have seen a lot of blogs and they have login authentication using phone, instead we can create a criteria that triggers the function https://www.twilio.com/blog/sending-sms-messages-dart-twilio-programmable-sms

the tricky part is using it to serve a purpose other than login and authentication

joeyouss
9 Aug, 2023, 12:14

give me some time to look around more

safwan
9 Aug, 2023, 14:50

Why don't you look at this flutter package? https://pub.dev/packages/twilio_flutter

joeyouss
9 Aug, 2023, 14:51

I think its way outdated

safwan
9 Aug, 2023, 14:52

Oh yeah I just saw. My bad.

safwan
9 Aug, 2023, 14:52

Well, Twilio SMS has a REST API that you can use https://www.twilio.com/docs/sms/api

safwan
9 Aug, 2023, 14:53

You could do what Jyoti said, and create a function to do this with Nodejs or one of the other supported frameworks by Twilio. I think it's better that way

YahalomS
10 Aug, 2023, 14:38

This package is great, but it works in the frontEnd and comes with many potential problems, in Security: you transfer you AuthToken and the SID to the FrontEnd, and if this is not enough, once you decide to renew the token, you will need to update the app, running it in the backend solves both problems, if it works….

joeyouss
10 Aug, 2023, 15:11

we are discussing this in Office hours rn

joeyouss
10 Aug, 2023, 15:11
Drake
10 Aug, 2023, 15:11
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more