EddyVerbruggen / SocialSharing-PhoneGap-Plugin

👨‍❤️‍💋‍👨 Cordova plugin to share text, a file (image/PDF/..), or a URL (or all three) via the native sharing widget
MIT License
1.78k stars 908 forks source link

shareWithOptions() issues with \n or <br> in plain text for e-mail body #660

Open sivanov opened 8 years ago

sivanov commented 8 years ago

Hi all, thanks for that great cordova plugin !

I use window.plugins.socialsharing.shareWithOptions to share files or e-mail body message and I have issues with new line breaks "\n" or "
".

In my case i made test with mots popular e-mail app's this days.

Legend '-' is not supported '+' is supported

new line support br \n
Mail(default iOS): - +
CloudMagic - +
AirMAil - +
Inbox + -
Outlook + -

1-st group of apps: Mail, CloudMagic and AirMAil not support HTML tag
and my question is how to enable HTML mode to 'TRUE' for method shareWithOptions() ?

If it's not possible to use HTML e-mail how to detect in socialsharing plugin which app user is select and base of his choose I will change body message formatting? I found something similar: http://stackoverflow.com/questions/34695055/new-line-in-whatsapp-vs-mail

Is it possible that type of functionality to be implemented in SocialSharing-PhoneGap-Plugin ?

Thanks in advance !

BR, Svetoslav.

ealbuquerque commented 7 years ago

any solution?

sivanov commented 7 years ago

Hi, as far as I remember we chosen variant with : \r\n this is row 15 from screenshot. ios-mail-clients-tests-socialsharing-plugin-from-19-aug-2016 in test i was using iOs applications: Mail (default iOS client), Spark, CloudMagic, Inbox, AirMail, Gmail, Outlook and Hop

Best regards, Svetoslav.

ealbuquerque commented 7 years ago

My case is a bit different... While this works well for mail sharing... WhatsApp ignores the \r\n

I need share on WhatsApp too :(

Thanks, @sivanov.

Zeca.

FURQAN2050 commented 5 years ago

Any solution For whatsApp?