New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sharing to Gmail app sets body as subject #414
Comments
+1 |
Same issue here, occurring on iOS only. |
+1 |
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. |
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? |
same issue facing. did any one got solution for this? |
@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. 😄 |
Any ETA, To fixing this? Its a kind of eyecatcher thing. |
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? |
Ok I will try. |
same issue :( |
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 |
with the latest master on Android, everything is fine. const options = { |
@thisisablock you can try pass a |
made a retest on the latest master branch on iOS 13.1.1 const options = { on iOS 13.1.1 Subject is now working. |
I am having the same issue. Any word on a fix? |
target email not setting in android ,how do I fix this ? |
Hi! Any updates here? We have react-native-share 3.0.0 and bug is still here. |
Hi @RadoAz ? Which payload are you passing to Share and which platforms are you seeing this issue? |
Hi, @MateusAndrade! On iOS. PDF file |
Any updates? Still have this issue in 3.1.2. |
Anyone had luck finding a workaround for this issue? Config proposed by @thisisablock did not change anything for me - subject is still replaced with message in gmail app |
I'm seeing this issue only on iOS and Gmail app. Gmail app seems to ignore Share.open({
url: fileRef.current, // 'data:application/pdf;base64,<my pdf file data>'
title: 'PDF-file',
type: 'application/pdf',
subject: 'PDF-file',
filename: 'PDF-file.pdf',
}) This work for any other app I have tested on iOS. On Android this works with Gmail. The file attached to the email is PDF-file. I can download it and add |
Any workaround for this issue? |
The @jozan answer doesn't work for you? |
@MateusAndrade I'm not sharing any file. Just texts and that doesn't look like a workaround. @jozan confirmed it is still problematic in Gmail. |
still present on 3.7.0 with Gmail, Yandex app |
hei guys, after a quick search I found a few issues related to this:
So it might be a gmail bug instead. Just try share an iOS note (from Notes app) via gmail. The entire body will be set as subject. |
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 |
Probably put a lot of empty space in front of the message, that will at-least clear off the subject field in iOS Gmail app. For eg:
|
In regard to Gmail ignoring title / subject - this seems to be a bug with gmail app and not with this library. You can test this on your device - try to share a note and you will notice it has no subject (while sharing with apple email app has a subject). |
Any chance to re-open this issue? This bug is still happening |
Is there some actionable task here and/or a desire to pursue it? Las comment is nearly a year ago and there's no action per last commenter. If you have information and desire to move this forward via presentation of your test results and/or a PR, sure? |
Is there any progress here? Still an issue |
You can start your message with "\n" so the subject is blank. Let the user enter their own subject. Arguably better. |
I tried it for Android and Ios. This bug still persists for Ios. 1- On Android phones, gmail correctly takes the "Subject" field. |
same problem |
Same problem, is there any news or workaround ? |
Steps to reproduce
title
/subject
set totest
, and setbody
param totest body
test body
, effectively ignoring the subject/title paramsExpected behaviour
Email subject set to 'test'
Actual behaviour
Email subject set to 'test body'
Environment
react-native-share
Version: 1.1.3
The text was updated successfully, but these errors were encountered: