Hi,
I am facing this issue when sending sms from my app using SMS plugin:
https://pub.dev/packages/sms
This plugin is working fine for sending short sms from my app. But when I sent long sms i got the following error:
Sent result: SmsManager.RESULT_ERROR_GENERIC_FAILURE
I have found solution to this issue on stackoverflow for android:
SmsManager.RESULT_ERROR_GENERIC_FAILURE
Most often this error arises when the message too long for 1 SMS. In such situation use this:
ArrayList<String> texts = smsManager.divideMessage(text);
smsManager.sendMultipartTextMessage(phone, null, texts, null, null)
So is there any way to implement this in flutter?
Thanks in advance.
Hi,
I am facing this issue when sending sms from my app using SMS plugin:
https://pub.dev/packages/sms
This plugin is working fine for sending short sms from my app. But when I sent long sms i got the following error:
Sent result: SmsManager.RESULT_ERROR_GENERIC_FAILUREI have found solution to this issue on stackoverflow for android:
So is there any way to implement this in flutter?
Thanks in advance.