I doing custom app send sms auto for users
I used many lib but it not working and my code bellow
Future<void> sendSMS(phoneNumber, message) async {
const platform = MethodChannel('sendSms');
try {
final String result = await platform.invokeMethod('send', <String, dynamic>{
"phone": phoneNumber,
"msg": message
});
print(result);
} on PlatformException catch (e) {
print(e.toString());
}
}
but when running my app throw exception with error:
MissingPluginException(No implementation found for method send on channel sendSms)
Thanks for any suport