Quantcast
Viewing all articles
Browse latest Browse all 76418

The phone number passed to send SMS is decoded wrongly

I am using the following code in an Xamarin.Forms app in the iOS project to send SMS:

public bool SendSMS (string number, string SMSMessage)
{
    return UIApplication.SharedApplication.OpenUrl (new NSUrl("sms:" + number));
}

This opens the iPhone's Messages app, but when I passed the number = "1234567890", it is decoded as +1(234)467-890 which is not correct. What am I missing here?


Viewing all articles
Browse latest Browse all 76418

Trending Articles