react-native-sms
react-native-sms copied to clipboard
SendSms callback is always giving error as true in IOS
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
Apparently sendSMS doesn't work on an IOS Simulator. I had that problem, and the same code worked on a real IOS device.