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

fix(clipboard): prevent NotAllowedError on first method invocation #342

Merged
merged 1 commit into from
Apr 9, 2021

Conversation

jcesarmobile
Copy link
Member

On iOS the the Clipboard API requires user interaction, the way the plugin is initialized makes the first method invocation to lose the user gesture and throw NotAllowedError.
By not using the promise on registerPlugin, the gesture is properly forwarded in first invocation

reference
https://forum.ionicframework.com/t/capacitor-3-clipboard-error/207576/5

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

Successfully merging this pull request may close these issues.

2 participants