fluttercommunity / flutter_sms

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
https://fluttercommunity.github.io/flutter_sms/
MIT License
245 stars 182 forks source link

Just a question or feature request #39

Closed jordantsap closed 3 years ago

jordantsap commented 3 years ago

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?

rodydavis commented 3 years ago

Currently not possible, but im open for PRs!