VersoSolutions / CordovaClipboard

Clipboard management plugin for Cordova/PhoneGap
MIT License
144 stars 257 forks source link

Copy no longer works in iOS 11 #33

Closed dannyconnell closed 7 years ago

dannyconnell commented 7 years ago

Firstly, thanks for your hard work on this plugin, it's worked great for me in iOS 10 and below.

However, since iOS 11 came out, the copy function no longer works as expected. For example, if I do the following:

cordova.plugins.clipboard.copy('password');

And then open the Facebook app on iOS 11, tap and hold on the password field and tap 'Paste':

img_3602

Then nothing gets pasted:

img_3603

If I then open the default iOS Notes app and attempt to paste there, instead of the plain text being pasted, I get this "text" object pasted:

img_3604

However, in some apps, such as the default iOS Mail app, the text will be pasted as expected:

img_3605

Is there any chance this could be fixed? Or does anyone know of a workaround?

Thanks.

dannyconnell commented 7 years ago

Never mind, I fixed it by following the advice in this issue:

26