A Flutter plugin to Send SMS and MMS on iOS and Android. If iMessage is enabled it will send as iMessage on iOS. This plugin must be tested on a real device on iOS. Maintainer: @rodydavis
I use other package to send sms without opening sms manager to android.
I use the package to open sms dialog inios and send predefined phone number and sms message:
void _sendSMS(String message, String number) async { bool _result = await launchSms(message: message, number: number) .catchError((onError) { print(onError); }); print(_result); } String message = "Sender has a car issue.\n" "Date-time at ${DateTime.now()}\n" "Location:\n" "$mapLink"; String number = bookerPhone;
It works as expected, but
is there a way to return to the app after the user sends the sms?
I use other package to send sms without opening sms manager to android. I use the package to open sms dialog inios and send predefined phone number and sms message:
void _sendSMS(String message, String number) async { bool _result = await launchSms(message: message, number: number) .catchError((onError) { print(onError); }); print(_result); } String message = "Sender has a car issue.\n" "Date-time at ${DateTime.now()}\n" "Location:\n" "$mapLink"; String number = bookerPhone;
It works as expected, but is there a way to return to the app after the user sends the sms?