mailto results in error on ios

DirkWilhelmDirkWilhelm USMember ✭✭✭

Hello,

i'm trying to open the defauilt mail app on ios using

var uri = "mailto:foo@example.com?cc=bar@example.com&subject=Greetings%20from%20Cupertino!&body=Wish%20you%20were%20";
Device.OpenUri(new Uri(uri));  

But this results in a crash on my IOS10 and IOS11 devices:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSURL initWithScheme:host:path:]: path is not absolute.'

Using a subject and body without spaces works.

I found this older, fixed bugzilla entry with a similar bug: https://bugzilla.xamarin.com/show_bug.cgi?id=25584

@StephaneDelcroix can you please take a look at this bug again?

Answers

Sign In or Register to comment.