react-native-share icon indicating copy to clipboard operation
react-native-share copied to clipboard

Sharing to Gmail app sets body as subject

Open kennym opened this issue 8 years ago • 42 comments

Steps to reproduce

  1. Call share dialog with title/subject set to test, and set body param to test body
  2. When opening with Gmail app, the subject line and body will be set to test body, effectively ignoring the subject/title params

Expected behaviour

Email subject set to 'test'

Actual behaviour

Email subject set to 'test body'

Environment

  • React Native version: 0.55.4
  • React Native platform + platform version: iOS 12.1.2

react-native-share

Version: 1.1.3

kennym avatar Dec 03 '18 14:12 kennym

+1

SergeyNedayvoda avatar Feb 17 '19 18:02 SergeyNedayvoda

Same issue here, occurring on iOS only.

rlemasquerier avatar Feb 20 '19 09:02 rlemasquerier

+1

nartjie101 avatar Mar 26 '19 07:03 nartjie101

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.

stale[bot] avatar May 26 '19 19:05 stale[bot]

any comment?

kennym avatar May 26 '19 19:05 kennym

any comment?

You can give a try ate the latest version? I suspect this is something related on how the app handle params on both ios and android, when calling Share.

You can provide the sample code that you used in this test?

MateusAndrade avatar May 26 '19 23:05 MateusAndrade

same issue facing. did any one got solution for this? Any other alternative to handle share to all installed apps including gmail.

zymr-viveksharma avatar May 27 '19 11:05 zymr-viveksharma

@MateusAndrade share anything on iOS with this library to the Gmail app... you'll see what we mean.

Basically using the same code you provide in the README.

kennym avatar May 27 '19 12:05 kennym

@MateusAndrade share anything on iOS with this library to the Gmail app... you'll see what we mean.

Basically using the same code you provide in the README.

Im going to give a try with this today. Thanks for your feedback. :smile:

MateusAndrade avatar May 27 '19 15:05 MateusAndrade

Any ETA, To fixing this? Its a kind of eyecatcher thing.

sitanshu-zymr avatar May 28 '19 09:05 sitanshu-zymr

As soon as you PR a change to the example that lets others test I'm guessing :-). Asking for ETAs in open source is like heading to the charity food center and asking why they aren't hurrying up with your free stuff right?

mikehardy avatar Jun 06 '19 13:06 mikehardy

Ok I will try.

sitanshu-zymr avatar Jun 06 '19 13:06 sitanshu-zymr

same issue :( occurring on ios :(

dungkv-1044 avatar Aug 27 '19 03:08 dungkv-1044

same issue :( occurring on ios :(

HI @dungkv-1044 recently we landed a PR that handle this. You can gave a look at this here: https://github.com/react-native-community/react-native-share#sharesingleoptions-in-ios--android

#557

MateusAndrade avatar Sep 06 '19 02:09 MateusAndrade

with the latest master

on Android, everything is fine. on iOS the target email address and subject is not filled.

const options = { url: blob, email: '[email protected]', subject: 'Hellol', type: 'application/pdf', social: Share.Social.EMAIL }

thisisablock avatar Sep 18 '19 11:09 thisisablock

@thisisablock you can try pass a share_subjectto the options? This was implemented on #38

MateusAndrade avatar Sep 26 '19 18:09 MateusAndrade

@MateusAndrade

made a retest on the latest master branch on iOS 13.1.1

const options = { url: blob, email: '[email protected]', subject: 'Hellol', type: 'application/pdf', social: Share.Social.EMAIL }

on iOS 13.1.1 Subject is now working. But the email sender is still not working on iOS. Android works as expected.

thisisablock avatar Sep 30 '19 12:09 thisisablock

I am having the same issue. Any word on a fix?

leteach avatar Nov 11 '19 17:11 leteach

target email not setting in android ,how do I fix this ?

nehaj2995 avatar Nov 26 '19 09:11 nehaj2995

Hi! Any updates here? We have react-native-share 3.0.0 and bug is still here.

RadoAz avatar Jan 23 '20 12:01 RadoAz