copy to clipboard using navigator.clipboard.writetext not working in android WebView
问题 I have a simple android WebView application which is displaying a website featuring 'copy' buttons using the following code:- navigator.clipboard.writeText('Text to be copied') .then(() => { console.log('Text copied to clipboard'); }) .catch(err => { // This can happen if the user denies clipboard permissions: console.error('Could not copy text: ', err); }); this is working in all desktop and mobile browsers and an iOS WebView application however I cant it fails and catches the following