Using the Clipboard Web API in our Zoom App

Hey all, I am wondering: have any other Zoom Apps developers utilized the Clipboard Web API in their app?

I’m trying to allow our hosts to share the meeting link with one-click by using navigator.clipboard.writeText(), but I get navigator.clipboard is undefined… wondering if this is a property of Zoom’s embedded browser or if I’m doing something wrong :thinking:

Cheers!
Oliver

1 Like

@om7 Currently, the clipboard isn’t available to zoom apps but you can submit a request through our ideas portal.

Ran into the same issue with the clipboard. @om7 lmk if you submit and I will +1 it.

FYI @jonathan.crockett, we used the deprecated document.execCommand() (Document.execCommand() - Web APIs | MDN) to copy to the clipboard, not recommended as a web standard but it works for now :sweat_smile:

2 Likes

That’s great to know that’s an option. Thanks!

Thank you for sharing that work around @om7!

Hello,
I see today, that this is still the same problem.
I want to copy custom text/html content using

navigator.clipboard.write([ newClipboardItem( ...) ])

this code works fine on all recent browsers. On some older, the clipboard-polyfill package helps.

But nothing of this is working within the webpage of our app, shared in the Zoom meeting. When we inspect the webview, we just get navigator.clipboard => undefined.

Also, the documentation at godevelopers.zoom.us docs zoom-apps architecture says that, for example on Mac, it’s tied to the WKWebView related to the current Safari version. I’m having the latest version of Safari, but no navigator.clipboard is defined in ZoomWebKit. It’s perfectly defined in Safari.

Questions:

  1. Will clipboard be into ZoomWebKit?
  2. Where are the specification of the capabilities of ZoomWebKit ? I cannot find them.

(sorry for the strange web links, I cannot integrate links)

Best regards
Christophe

2 Likes