woheller69 / gptAssist

gptAssist is a simple WebView wrapper for ChatGPT
GNU General Public License v3.0
226 stars 6 forks source link

Copy answer button not working #3

Closed jvde08 closed 1 year ago

jvde08 commented 1 year ago

The button simply doesn't do anything. The copy button can be pressed and briefly changes to a checkmark but doesn't actually copy the answer. Tested on Android 11, OnePlus 9 Pro

woheller69 commented 1 year ago

Unfortunately webview does not support that. But you can long click on the text and select it

Kurasami commented 1 year ago

Sorry to spam all your open issues but this is again possible if you know the class ID where the data is located:

https://stackoverflow.com/questions/53945593/copy-button-in-a-webview-doesnt-work-why

Many thanks for making this app btw. If it could simply retain login on my device it would be more than good enough for me.

woheller69 commented 1 year ago

I have seen that as well, but I don't know the class ID where data is located...

Kurasami commented 1 year ago

You can't test it in developer mode? Ask it something and find the class ID which has the answer in it.

woheller69 commented 1 year ago

If there are several answers in the thread, it will get more complex. And I am not a html / javascript expert.

You can simply mark the part you need and copy it

woheller69 commented 1 year ago

Seems to be a bug in WebView reported long ago in 2015 and still not fixed: https://bugs.chromium.org/p/chromium/issues/detail?id=490120

woheller69 commented 1 year ago

This version shows a message when the user clicks on the copy button and tells him to do it manually.

https://github.com/woheller69/gptAssist/suites/13658024142/artifacts/754206126

GGORG0 commented 11 months ago

Strange. The README says, that the app is partly based on GMaps VW, where coping (via the share button) works perfectly fine for me! In gptAssist it is broken though.

WebView: Vanadium (GrapheneOS) System WebView

woheller69 commented 11 months ago

somehow Google manages this probably in their own Javascript code of Google Maps.

GMapsWV only has a listener for a change in clipboard and reacts if clipboard changes