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

Not working in iOS 10? #26

Open
zwand19 opened this issue Sep 18, 2016 · 4 comments
Open

Not working in iOS 10? #26

zwand19 opened this issue Sep 18, 2016 · 4 comments

Comments

@zwand19
Copy link

zwand19 commented Sep 18, 2016

I can't get any copy/paste functionality to work in iOS 10 using cordova-ios 4.1.1

@zwand19
Copy link
Author

zwand19 commented Sep 19, 2016

replacing

[pasteboard setValue:text forPasteboardType:@"public.text"];

with

pasteboard.string = text;

fixed it for me.

@dcousens
Copy link

dcousens commented Sep 19, 2016

@zwand19 submit a PR?

XPanniX added a commit to XPanniX/CordovaClipboard that referenced this issue Oct 24, 2016
@BrandonPotter
Copy link

Has this been merged/fixed? Same issue...

@funnel20
Copy link

funnel20 commented Oct 4, 2017

We solved this by changing the pasteboardType.
Original code:

[_pasteBoard setValue:text
    forPasteboardType:(NSString *)kUTTypeText];

New code:

[_pasteBoard setValue:text
    forPasteboardType:(NSString *)kUTTypeUTF8PlainText];

This solves the issue and works on iOS 9, 10 and 11.

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

No branches or pull requests

4 participants