You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Basically there is a known issue with using the clipboard API in a hybrid app in Android. There are many workarounds, usually involving exposing a clipboard object using the native addJavascriptInterface API, and exposing the Java clipboard functionality that way.
What browsers does this problem apply to, if applicable?
queengooborg
changed the title
api.Navigator.clipboard - clipboard.readText is known not to work in Android webview
api.Clipboard.readText - known not to work in Android webview
Dec 2, 2023
What type of issue is this?
Incorrect support data (example: BrowserX says "86" but support was added in "40")
What information was incorrect, unhelpful, or incomplete?
Basically there is a known issue with using the clipboard API in a hybrid app in Android. There are many workarounds, usually involving exposing a clipboard object using the native addJavascriptInterface API, and exposing the Java clipboard functionality that way.
What browsers does this problem apply to, if applicable?
Chromium (Chrome, Edge 79+, Opera, Samsung Internet)
What did you expect to see?
The documentation should reflect the current situation i.e., the javascript clipboard API doesn't work in hybrid apps on Android
Did you test this? If so, how?
Yes I have tested it in my hybrid app.
Can you link to any release notes, bugs, pull requests, or MDN pages related to this?
https://stackoverflow.com/questions/73863737/clipboard-readtext-not-working-in-android-webview
https://stackoverflow.com/questions/61429649/copy-to-clipboard-using-navigator-clipboard-writetext-not-working-in-android-web
https://stackoverflow.com/questions/61243646/clipboard-api-call-throws-notallowederror-without-invoking-onpermissionrequest
These are some examples of people with this issue
Do you have anything more you want to share?
No response
MDN URL
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/clipboard
MDN metadata
MDN page report details
api.Navigator.clipboard
The text was updated successfully, but these errors were encountered: