sms_mms 0.0.1+1
sms_mms: ^0.0.1+1 copied to clipboard
Flutter plugin for launching native messenger with SMS/MMS
SMS/MMS #
A flutter plugin to open native messenger for SMS/MMS
This plugin primarily fulfils the requirement of opening native messaging app (Google Messages) on android & (iMessage) on iOS directly for sharing media.
IOS Demo #
Android Demo #
Fetures offered by plugin: #
SMS:
- Opening native messenger only with recipients
- Opening native messenger with recipients & message
MMS:
- Opening native messenger only with recipients
- Opening native messenger with recipients & message
- Opening native messenger with recipients, message & file
Code implementation: #
Implemention is quite easy, just call the function SmsMms.send()
await SmsMms.send(
recipients: recipientsList,
message: messageController.text,
filePath: filePath,
);
recipients
- List of users to send message to. It contains list of string as eg. ["12345678", "1234"]
message
- Contains to body of the message to be sent
filePath
- Contains the path of the attachment to shared as MMS
Issues #
Some time on android, file does not get attached on first run