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

SendSms callback is always giving error as true in IOS #99

Open
UraanAmritansh opened this issue Nov 15, 2021 · 1 comment
Open

SendSms callback is always giving error as true in IOS #99

UraanAmritansh opened this issue Nov 15, 2021 · 1 comment

Comments

@UraanAmritansh
Copy link

Here is my code
SendSMS.send(
{
// Message body
body: shareUrl,
// Recipients Number
// recipients: [],
// An array of types
// "completed" response when using android
// successTypes: ['sent', 'queued'],
},
(completed, cancelled, error) => {
if (completed) {
console.log('SMS Sent Completed');
} else if (cancelled) {
console.log('SMS Sent Cancelled');
} else if (error) {
console.log('Some error occured',error);
}
},
);

   This is working perfectly fine in android as it is redirecting to sms screen with body
   But in IOS its giving error as true
   
   Kindly look into this issue
@crayne
Copy link

crayne commented Dec 11, 2021

Apparently sendSMS doesn't work on an IOS Simulator. I had that problem, and the same code worked on a real IOS device.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants