final Telephony telephony = Telephony.instance;
telephony.sendSms( to: number, message: message, isMultipart: message.length >= 160,
statusListener: (status) {
print(status);
switch (status) {
case (SendStatus.DELIVERED):
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Links sent successfully.")));
break;
case (SendStatus.SENT):
ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Links will be sent shortly.")));
break;
}
}
);
The above code never has SensStatus.delivered for any Sms.
final Telephony telephony = Telephony.instance; telephony.sendSms( to: number, message: message, isMultipart: message.length >= 160, statusListener: (status) { print(status); switch (status) { case (SendStatus.DELIVERED): ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Links sent successfully."))); break; case (SendStatus.SENT): ScaffoldMessenger.of(context).showSnackBar(SnackBar(content: Text("Links will be sent shortly."))); break; } } );
The above code never has SensStatus.delivered for any Sms.