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
hi, any chance you saw this and this is of help to you? https://dev.to/appwrite/phone-authentication-with-appwrite-and-twilio-26ek
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.
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
give me some time to look around more
Why don't you look at this flutter package? https://pub.dev/packages/twilio_flutter
I think its way outdated
Oh yeah I just saw. My bad.
Well, Twilio SMS has a REST API that you can use https://www.twilio.com/docs/sms/api
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
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….
we are discussing this in Office hours rn
@Aditya Oberai shared this: https://dev.to/adityaoberai/rick-roll-your-friends-using-appwrite-twilio-and-net-4180
here's another example: https://github.com/open-runtimes/examples/tree/main/python/send_message
Recommended threads
- Bug report: Race condition in Flutter SD...
Hi team, I've found an intermittent bug in the Flutter SDK (v20.3.0) when using `createOAuth2Session` on Android. **Symptoms** After `createOAuth2Session` re...
- After assigning a domain to my Dart func...
I’ve attached the images. Could anyone please explain how this execution is being performed?
- I can't UNPAUSE my project with the free...
I received an email notifying me that my project had been paused due to inactivity, and the email included a link to "Restore project." However, that button red...