Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feat: Open SMS Only with Text(Without Number) #26

Open
sreejith-mv opened this issue Aug 20, 2024 · 0 comments
Open

Feat: Open SMS Only with Text(Without Number) #26

sreejith-mv opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sreejith-mv
Copy link

Describe the Feature

There is a scenario where user can able to open the SMS with a per populated text but without an number. This is situation comes when user can sent SMS to people in their own contact and app don't have any information about receivers. This scenarios comes when user like to send a invite link etc to someone.

I aM using following code and this is working fine in iOS but in android its giving error ERR_NO_NUMBERS

SmsManager.send({ numbers: [] , text: "My SMS text", });

Platform(s) Support Requested

  • Android

Describe Preferred Solution

If we can remove the empty check(recipientNumbers.isEmpty()) for numbers array, the situation I explained above will work. In SmsManagerPlugin.java at line number 45, if we update code like below, its working fine.

if (recipientNumbers == null) { call.reject(ERR_NO_NUMBERS); return; }

@moberwasserlechner moberwasserlechner added the enhancement New feature or request label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants