Flutter : Send sms in flutter app| Integrate sms | Added Subtitles | flutter coding

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
In this vlog will see how to send an SMS from our flutter application as you are already aware that the flutter application can be used on both Android and IOS devices so here we will be seeing the implementation we are adding a dependency flutter_sms here of version 2.1.1 currently available version you can update the version latest available when you are trying this tutorial let's start coding so here void main can we are considering a default class my app it is extending a stateless widget here and inside which we are returning a material app inside so inside we are providing a home class for home widget here home class is extending a stateless widget and here you can see a recipients here we have provided a multiple mobile numbers so in this particular tutorial we are going to send a message to more than one mobile numbers here and if you are having only one mobile number so you can just simply remove this particular another number and can try this tutorial you can also add multiple numbers by adding over here so inside scaffold we have provided an app bar where we have provided is default title here it is sending SMS send SMS to multiple so here inside the body we have considered a container so that we can have more widgets so basically we are adding only single visit in this particular tutorial that is a raised button over here so when you tap on this button so this particular functionality like_send SMS and hear this is a text message and here we are sending the recipient so these two are the parameters passed in the message and second one is the recipients here so this was the numbers recipients we are sending on receiving this particular request here is being set the message parameter and the recipients is said to the recipients parameter over here in this way we are trying to send an SMS in our flutter application so now let us try to see the output so this is how the implementation and now let us try to tap on the button send SMS you can see we have got a platform exception over here so the message not sent what what is the reason he can see here cannot send message on this particular device cannot send SMS and MMS on a simulated so here you can see we are using a virtual simulator here so this is not a real time iPhone here so it is asking us to try this particular code on real-time device using it on the simulator there are some limitations so we cannot send an SMS or MMS using a simulator either we need to use a real-time device or we can try it on the Android Emulator here to you can I think you are aware that in iOS it is called simulator and for Android is an emulator so now let us try with the Android Emulator here so now we will be trying to load in Android Emulator here so if you are having any queries in creating this particular virtual devices to let me know in the comments section below and I will surely help you in creating them so here is the output we can see in our Android application just like in our iOS same output you can see here so no let us try to tap on the send SMS button and you can see and here you can see we have got those two numbers here and here you can see the name is been the saved instead of number because I have already saved the particular number previously for it tutorial after the name instead of number this is the another name we have added redirected to messages application in our mobile and here these two numbers and just you can type any message and send an SMS or MMS here so this is how we can integrate an SMS and MMS from our flutter application so using Android Emulator you can test this functionality 's like calling and sending SMS and these are restricted in simulator that is iOS so you need to use a real-time device for iOS testing and I hope this will work on the real-time device to because the code is same for both Android and IOS and this is for this tutorial and you are having any queries in this tutorial when you implement on real-time device for iOS also do let me know in the comments section below and the code for this tutorial is available in the description section below and if you like this tutorial do like share and subscribe to our channel for more interesting content on flutter
Info
Channel: amplifyabhi coding
Views: 26,964
Rating: undefined out of 5
Keywords: flutter, flutter tutorial, flutter sms, flutter send sms, sms in flutter, send sms flutter, send sms in flutter, how send sms using flutter, google flutter, flutter url_launcher to send sms, how to send an sms, sms, flutter sms otp, flutter mail send, flutter sdk, flutter firebase tutorial, flutter sms gateway, send mail in flutter, flutter firebase authentication, flutter send mail direct, set up flutter, flutter share, mail send with flutter, send mail from flutter
Id: XR4RhZTyeKM
Channel Id: undefined
Length: 5min 32sec (332 seconds)
Published: Sun Jan 03 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.