spaces on mail body when we Open gmail app from iOS url schemes


spaces on mail body when we Open gmail app from iOS url schemes



Is it possible to provide spaces or new line or line breaks on gmail compose on URL schemes. I tried both /n or stringByAddingPercentEscapesUsingEncoding, but space or lines breaks are not reflecting.


/n


stringByAddingPercentEscapesUsingEncoding



googlegmail:///co?subject=subject&body= "nnn textfirstname"


googlegmail:///co?subject=subject&body= "nnn textfirstname"





Use HTML email body and a <a href="googlegmail:....">Whateverntextnyounwant</a>.
– rmaddy
Jun 30 at 19:33


<a href="googlegmail:....">Whateverntextnyounwant</a>




1 Answer
1



This is not an issue with iOS or url-scheme. You need to use html tag to set new line. For HTML there are <br/> or <br /> which are used to break line. Use this tag instead of n.


<br/>


<br />



As per you code it should looks like this:


Whatever<br/>text<br/>you<br/>want



I hope this will be useful to you.





I tried still its displaying Whatever<br/>text<br/>you<br/>want on gmail compose. even tried with %0D%0A as well as a few other options.
– manjunath kaliwal
2 days ago





Is this issue with Gmail app as i found tis link: productforums.google.com/forum/#!topic/gmail/…
– manjunath kaliwal
yesterday






By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Popular posts from this blog

List of Kim Possible characters

Audio Livestreaming with Python & Flask

NSwag: Generate C# Client from multiple Versions of an API