sindresorhus/clipboardy

not work iphone safari

easthyuck opened this issue · 2 comments

hello
I am using the library you made well. but
On iPhone Safari This error is caught

error =====>
NotAllowedError: The request is not allowed by the user agent or the platform in the current context, possibly because the user denied permission.
writeText
(익명 함수) — 9751-1e1cc88faa7dfc2d.js:1:7064
(익명 함수) — 9751-1e1cc88faa7dfc2d.js:1:7068
(익명 함수) — page-76ccfe76f3c3aa4e.js:1:26731

add information
user agent :
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148

From the readme:

In the browser, it requires a secure context.

okay i tried https environment
i find mistake in my logic Includes asynchronous requests
anyway remove request logic .. retry have success copied
but MacOS safari failed... T.T

oh i fixed
https://developer.apple.com/forums/thread/691873

thanks sindresorhus