-
Notifications
You must be signed in to change notification settings - Fork 257
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
Clipboard not pasting on android #24
Comments
Hey @marinsokol First and foremost, you're calling the function incorrectly. You should begin with Secondly, are you sure you're calling this function after the |
When I view log in DDMS, I found this error: |
I have a very similar issue. My copy/paste functionality works perfect while in app, but if I try to paste some text that was copied in my app, to some other app, it simply doesn't work. The text that was in clipboard before I copied a new one in my app, got pasted. |
Cannot paste content into my app (copied from another app) with this plugin in Android 6.0 |
I forked the plugin to fix the issue. It has to do with when you copy text from an html page. The mime type is text/html, different from text/plain. The plugin was sending two results in a row which made the call to never comeback even with an error. To get it to work, you can just replace the Clipboard.java class with my class from https://github.com/abelabbesnabi/cordova-plugin-clipboard |
@abelabbesnabi 👍
and in my ts file from app i did that :
and inside my file using plugin like that :
|
I have a similar problem: my app use paste to copy a text as body for mail and/or whatsupp application. here a part of code:
note that I tried to use also a var called this.clipboiard initalized in the constructor without success. any idea in how to solve my problem? |
Hi,
I have a problem, I am trying to set copy / paste on my android app, but paste is not working when I copy text from any app on my phone and try to paste it in my app. Copy / paste is working when I am in my app and I can paste text, what I copy in my app, in any app on my phone.
Can somebody help me?
this is how I try to paste in my app
window.plugins.clipboard.paste( text => {console.log(text)} );
The text was updated successfully, but these errors were encountered: