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

copyToClipboard not working on iOS #6378

Closed
diadal opened this issue Feb 15, 2020 · 4 comments
Closed

copyToClipboard not working on iOS #6378

diadal opened this issue Feb 15, 2020 · 4 comments

Comments

@diadal
Copy link
Contributor

diadal commented Feb 15, 2020

copyToClipboard not working on iOS no error log phone screen blink only when click on copy icon

import { copyToClipboard } from 'quasar'

copyToClipboard('some text')
  .then(() => {
    // success!
  })
  .catch(() => {
    // fail
  })

Platform (please complete the following information):
OS:
Node:
NPM:
Yarn:
Browsers:
iOS: iPhone XR simulator
Android:
Electron:

@rstoenescu
Copy link
Member

What does the error in your catch() statement say?
If the iOS rejects the native call there's nothing that we can do. Does your app has enough perms?

@diadal
Copy link
Contributor Author

diadal commented Feb 15, 2020

where do I set permission for to allow this to work catch() only return false

Screenshot 2020-02-15 at 15 00 15

@diadal
Copy link
Contributor Author

diadal commented Feb 15, 2020

this plugin work for me

import VueClipboard from 'vue-clipboard2'

VueClipboard.config.autoSetContainer = true

@rstoenescu
Copy link
Member

Enhancement will be available with "quasar" v1.9.3.

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

No branches or pull requests

2 participants