There are quite a few issues on here which state that iOS is having trouble.
I've noticed that many of these are being closed abruptly. This isn't particularly helpful for the community. Just because one example you have works doesn't mean that all other cases will - and vice-versa - as we well-know.
Since iOS 10, some restrictions were introduced which limit which content can be exposed to the clipboard api. The content must reside in an <input> or <textarea> OR must be flagged as contenteditable. Perhaps this relates to the iOS10-specific issues?
I was also having issues on my iPhone. Unfortunately, this error stopped all subsequent JS from executing. I found that, rather than taking the script from NPM, running it through Webpack, etc.. if I just took the script used on clipboardjs.com (dist/clipboard.min.js) and manually inserted it in to my bundle (yeah I know..) it started working on iOS. This seems odd as the issue was only affecting iOS and was a reference error (ClipboardJS not found).
Posted most of this as a comment elsewhere but posting as a new issue too in the hope that this helps some people.
Please don't close issues before the OP is satisfied, or at least be a good open-sourcer and give clear pointers rather than "must be your implementation".
Cheers!
I met the same problem
i got the problem on ios12.2
i got the problem on ios12.2
cordova-clipboard is useful for ios12.2
@wsy6566 how to use cordova-clipboard in js , i imported it and the package of 'cordova', but there was an error that 'fs' package was wrong
ios12.4 also clip fail
ios12.4 also clip fail
ios12.4 also clip fail锛宎nd there was no response锛宒o not pass the successful or failed callback function too.
Upgrade the operating system version number and the problem is gone.
Most helpful comment
Upgrade the operating system version number and the problem is gone.