Skip to content

Sent result: SmsManager.RESULT_ERROR_GENERIC_FAILURE #64450

@MuhammadAliKust

Description

@MuhammadAliKust

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions