Skip to content
This repository was archived by the owner on May 15, 2024. It is now read-only.
This repository was archived by the owner on May 15, 2024. It is now read-only.

SMS API - Add support multiple recipients #383

@nbsoftware

Description

@nbsoftware

Steps to Reproduce

Build an app that uses the SMS API to prefill an SMS with multiple recipients (one string with recipients separated with a semi-colon)

Expected Behavior

Add as many recipients as there are in the passed string.

Actual Behavior

On iOS at least, it only adds the last one i.e. when passed "tel1;tel2;tel3;" it only displays tel3.
Not able to test on Android just now but, looking at the code, it might work as the "smsto" uri seems to support multiple recipients separated with a semi-colon (cf https://stackoverflow.com/questions/10265480/android-opening-sms-activity-with-multiple-recipients-specified)

Basic Information

Device Tested On: iPhone 6s / 7 plus - iOS 11.4
Simulator Tested On: N/A
Version of VS: Version 7.5.3 (build 7) for Mac
Version of Xamarin: Xamarin.iOS 11.12.0.4

EDITED by @Redth with API Spec:

API Spec

SmsMessage
Remove: public string Recipient { get; set; }
Add: public IList<string> Recipients { get; private set; }

Remove: public SmsMessage(string body, string recipient)
Add: public SmsMessage(string body, params string[] recipients)

Metadata

Metadata

Assignees

No one assigned

    Labels

    good-first-issueGood for newcomersin-progressActively being worked on.proposalProposed feature or enhancement.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions