react-native-sms icon indicating copy to clipboard operation
react-native-sms copied to clipboard

SendSms callback is always giving error as true in IOS

Open UraanAmritansh opened this issue 4 years ago • 1 comments

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

UraanAmritansh avatar Nov 15 '21 08:11 UraanAmritansh

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

crayne avatar Dec 11 '21 01:12 crayne