Send SMS using Essentials

I am trying to send an SMS message from within my Android app using Xamarin Essentials using the following code:

var message = new SmsMessage( messageText, new []{ recipient });
await Sms.ComposeAsync( message );

Calling Sms.ComposeAsync brings up the stock Android messaging application which I do not want.
What am I missing ?

Andy

Tagged:

Best Answer

Answers

  • AndrewFraserAndrewFraser GBMember ✭✭

    Thanks for that code sample, that works perfectly :smile:

    Andy

  • jezhjezh Member, Xamarin Team Xamurai

    It's my pleasure to help you. Happy coding... :)

Sign In or Register to comment.