yasirkula / UnityNativeShare

A Unity plugin to natively share files (images, videos, documents, etc.) and/or plain text on Android & iOS
MIT License
908 stars 134 forks source link

Wrong email subject on iOS (11.4) #19

Open hippogamesunity opened 6 years ago

hippogamesunity commented 6 years ago

Hi! When I send email from iOS via Share dialog, I've got an email with wrong Subject. It's the same as Message. This happens only on iOS. On Android it's fine.

Here is an example of the email: image

Here is how I make call to you plugin: image

yasirkula commented 6 years ago

Your code looks correct. The issue is that, native share dialogs can behave unexpectedly in some cases -like not showing up Instagram when a text is set- and I think this is one of these cases. My code doesn't have any app specific logic, so I am unsure whether or not this can be fixed.

hippogamesunity commented 6 years ago

I can select the apps to use for sharing in iOS 11.4. Just checked sharing feature in Evernote, there is the same issue: image

Ok, it's not related to your plugin.

quangcongvn commented 6 years ago

me too, share on Gmail same subject and message on Android work fine.

yasirkula commented 6 years ago

I'll reopen this issue but I don't think there is anything I can do to fix this issue.

quangcongvn commented 6 years ago

I think best practice are set message only. Let user set subject, because automatically set subject can make mail system filter spam or ads. Or make receiver lazy read because it like automatically mail. (ex Game name, App name)

jrhager84 commented 5 years ago

Is there nothing that can be done? I was kind of hoping to be able to set a separate subject on iOS.

I think saying something is 'best practice' when broken is a half-solution. I think the user can decide whether or not it's a best practice.

It makes it nice when you have a template that you can follow, and the subject is pretty important. Do you know what is preventing it from being able to be set? Maybe we can collectively investigate?

jrhager84 commented 5 years ago

Would this be a solution?

https://stackoverflow.com/questions/17020288/how-to-set-a-mail-subject-in-uiactivityviewcontroller

yasirkula commented 5 years ago

Are you trying to share via Gmail? If I google objective c uiactivityviewcontroller email set subject "gmail", people seems to agree that you can't set the subject of a mail composed in Gmail.

jrhager84 commented 5 years ago

How does the Craigslist app do it?

Surely there has to be a solution

yasirkula commented 5 years ago

I haven't used Craigslist, does it allow sharing to social networks like Facebook or does it only allow composing emails?

jrhager84 commented 5 years ago

I believe you can share to wherever, but it sets the subject separate to the body