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
Image Sharing for WhatsApp is not working #280
Comments
@iSaadSalman application is crashing? |
@jgcmarins No it’s not crashing. Just the image is not being shared in WhatsApp. Check the description I wrote in op. |
Is it happening on both platforms? |
@jgcmarins Just testing on iOS right now. It's happening there. |
@jgcmarins Do you have any idea what could be the problem? |
Same problem |
@jgcmarins Any update on this? |
@iSaadSalman can you try master branch? |
@jgcmarins I tried by overwriting the module in node_modules since I'm not able to update via npm. I'm receiving this build error in Xcode: |
@jgcmarins any update? |
@iSaadSalman I could not take a deeper look. |
Your link is wrong here. |
@iSaadSalman can you please check after removing 'message' from options, if it is working or not. Whatsapp only allows one of them to be used, i.e. you can only use message or url at a time for whatsapp. |
@kkbhav sorry for the very late reply. Yeah you are right if I remove the message image shows up |
Is this a bug or what? Can we close this one? |
@jgcmarins Well if the message overwriting URL is enforced, this but has been resolved |
@jgcmarins If you can, maybe add a readme note about this so people know |
The problem with message override still exists. Url does not work if I add a message field. Tested with version 1.1.3. |
any update? |
The issue is only on iOS. For Android it works well. Any update on this? |
share image on WA work on my Device, and shareOption like this
then i add code
on file WhatsAppShare.m line 49
|
url property will not work on android, try this |
|
Yes. It works. But we need sharing with a caption. Does anyone have a solution for this? |
Any solution for this? |
Facing same issue any update? |
It is impossible. Just share only message or image. Not both. |
@EnclaveAnthony Is there any way we can send two messages in one share. One for image and next for message. |
from this latest release note for Whatsapp. Enclave is right |
I have found a working workaround for this problem. Currently, I also use it in one of my applications. You can directly plug and play the below onClick function on a button press. RNFS.downloadFile, downloads the remote image using URL and save it to a path.
Url is the image remote URL and id is some unique identifier for that image. |
Share.shareSingle(options) share image on whatsapp is not working while Share.open(options) working perfectly. I tried many solution like: |
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 |
So I'm saving a screenshot locally and passing the URI to Share options. Its working fine for every platform except Whats App.
`let shareOptions = {
title: "Share",
url: this.state.cameraRollUri,
type: 'image/png',
message: "Here it is",
subject: "Share Link", // for email,
};
Just message appears but no image
The text was updated successfully, but these errors were encountered: