sthewissen/MVP

[Bug] The URL on clipboard functionality is broken

sthewissen opened this issue · 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.

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

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?