Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

navigator.clipboard.writeText() not working with iOS #1

Open
SimpelMe opened this issue Apr 17, 2021 · 1 comment
Open

navigator.clipboard.writeText() not working with iOS #1

SimpelMe opened this issue Apr 17, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@SimpelMe
Copy link
Owner

In iOS (and probably other os to) navigator.clipboard.writeText() isn't working the way I intend. In iOS it needs to be called by an user activated event like pointerup. I didn't get an pointerup event to work with navigator.clipboard.writeText() and the http request before to get the pastebin.

Maybe someone can fix this issue.

// navigator.clipboard.writeText(allText) // this new API is not working with iOS the way I want

@SimpelMe SimpelMe added the enhancement New feature or request label Apr 17, 2021
@SimpelMe
Copy link
Owner Author

SimpelMe commented Oct 5, 2021

Problem is that safari (OSX too) needs clipboard.writeText unnested. As you have to wait for downloading the file clipboard.writeText had to be nested. I found a work around with a third button only putting already downloaded content to clipboard. Other browsers then safari can trigger this third button with javascript after file is downloaded. This third button is needed visible only for safari.
See: 8824810

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant