sms_mms 0.0.2
sms_mms: ^0.0.2 copied to clipboard
Flutter plugin for launching native messenger with SMS/MMS. Launches native messaging app without showing intent chooser on Android.
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 #
Android Native Side #
Make sure to add this files file_paths.xml under (example/android/app/src/main/res/xml/file_paths.xml)
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