Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

The phone number passed to send SMS is decoded wrongly

$
0
0

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 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>