Rocket.Chat.ReactNative icon indicating copy to clipboard operation
Rocket.Chat.ReactNative copied to clipboard

Share media to other apps

Open luckydonald opened this issue 5 years ago • 12 comments

  • It is not possible to copy posted images to clipboard (Image, not the url of the message)

  • It is not possible to share the image in a different app via share sheet (image itself, not the url of the post)

  • Your Rocket.Chat Experimental app version:

version: 4.8.0.17970 device: iPhone SE

  • Your Rocket.Chat server version: 1.30

The app isn't connecting to your server? Make sure your server supports WebSocket. These are the minimum requirements for Apache 2.4 and Nginx 1.3 or greater.

luckydonald avatar Aug 01 '20 21:08 luckydonald

It is not possible to copy posted images to clipboard (Image, not the url of the message)

Duplicated of #1691

It is not possible to share the image in a different app via share sheet (image itself, not the url of the post)

Update to latest version and try again.

diegolmello avatar Aug 03 '20 11:08 diegolmello

@diegolmello #1691 is about pasting, this one is about copying.

luckydonald avatar Aug 03 '20 12:08 luckydonald

36418507-0C73-4941-A109-C1F958C13C90 @diegolmello this seem to be the newest version of the app there is on TestFlight. Where can I get a newer one?

luckydonald avatar Aug 03 '20 12:08 luckydonald

@diegolmello #1691 is about pasting, this one is about copying.

@luckydonald You're right. My bad. I'm opening again. I also saw that you're talking about a follow-up feature of copying an image to another app. That's not implemented yet.

About the version, Experimental version of the app was removed from the store by Apple. We keep Experimental only as beta version, but we don't update it that often, as public betas need to be approved by Apple as well. You should be using the Official version for reporting.

diegolmello avatar Aug 03 '20 12:08 diegolmello

I tried with the most recent Appstore one, and the open.rocket.chat server as well.

34FB11BA-16F9-4D41-8745-460A13D5BB9B 55694779-1AB6-4F54-92ED-75C4C476575A Both copy and share give me an link instead of the media I long pressed on.

luckydonald avatar Aug 03 '20 12:08 luckydonald

All three (copy, share, permalink) do result in https://open.rocket.chat/channel/sandbox?msg=qD4Wfu9rKcqTsfECv

luckydonald avatar Aug 03 '20 12:08 luckydonald

That current form redundant and all three could even be merged into one Single "Share post" as the link share menu has the copy option as well. 125DF2C4-402E-44CF-BA21-9DCB6B179D21 Oopsie, it's cut off a bit at the bottom but it's there.

luckydonald avatar Aug 03 '20 12:08 luckydonald

I think Copy option copies the text of the message, but I agree Permalink and Share do almost the same thing.

diegolmello avatar Aug 03 '20 12:08 diegolmello

Oh my bad. Indeed copy results in an empty clipboard with images.

How Would I go with implementing this? My idea was to look at the code for the current save to camera role code for how to grab the image file, and then shove it into the clipboard somehow, probably those permalinks copy things already use a library for that?

luckydonald avatar Aug 03 '20 13:08 luckydonald

Something like this on iOS https://stackoverflow.com/a/44423850/5447468 Possible on Android https://stackoverflow.com/a/39613285/5447468

diegolmello avatar Aug 03 '20 13:08 diegolmello

@diegolmello Should we make our image package which would accomplish the mentioned functionality or should we use npm packages!?

hetanthakkar avatar Apr 03 '22 00:04 hetanthakkar

hey , is this something i can work on or the new message composer make it moot? @diegolmello @reinaldonetof

atulsingh98 avatar Jan 04 '24 19:01 atulsingh98