MVP icon indicating copy to clipboard operation
MVP copied to clipboard

[Bug] The URL on clipboard functionality is broken

Open sthewissen opened this issue 3 years ago • 2 comments

The app sees that there is something on the clipboard, but when grabbing it from the clipboard it returns null.

Only tested this on iOS atm, might be iOS15 related.

sthewissen avatar Oct 04 '21 09:10 sthewissen

Tested this as well on iOS 15 with different results:

https://github.com/andreas-nesheim/MVP.git -> Worked https://no.wikipedia.org/wiki/Klaus_Hasselmann -> Did not work

I'll test some more and submit a PR if I'm able to solve it

andreas-nesheim avatar Oct 06 '21 06:10 andreas-nesheim

It looks like it depends on if the author of the URL supports the Open Graph protocol or not. If the meta property og:url is missing from the site, the OpenGraph-utility fails to insert the URL. We could add a fallback-check that if this meta property doesn't exist, we use the OpenGraph.Url.AbsoluteUri directly?

andreas-nesheim avatar Oct 06 '21 08:10 andreas-nesheim