I would like to send the same message by SMS to multiple recipients. But don't want recipients to know each other (like BCC in emails). And I don't want to use an external SMS sender.
I'm currently using Xamarin.Essentials.Sms to compose the message with multiple recipients.
public async Task<bool> TryOpenSmsAsync(string message, List<string> recipients)
{
try
{
var smsMessage = new SmsMessage(message, recipients);
await Sms.ComposeAsync(smsMessage);
return true;
}
catch (FeatureNotSupportedException ex)
{
// Sms is not supported on this device.
return false;
}
catch (Exception ex)
{
// Other error has occurred.
return false;
}
}
SMS composed is prefilled correctly, with the recipients. But if I send it, all recipients can view the phone numbers of other recipients. In my case, this is a security issue.
I doesn't seem possible to remove any group messaging options using Xamarin Essentials.
While searching, i found that it is possible to disable the Group Messaging options, but it requires the user to perform complex actions (which is not what i want) :
- on iOS in Settings --> Messages
- on Android it depends on the messaging app.
Is it possible to achieve this ? Or maybe an alternative ?