Ionic native clipboard plugin copy function doesn't work well in ios 11


#1

I’m using ionic 4 and the latest ionic native clipboard plugin.

this.clipboard.copy('text')

On ios 11.3, The above code can copy “text” to clipboard. And I can paste on other text boxes in the app. I can also paste the text on iphone’s search area. But I can’t paste on telegram nor instagram.

It worked perfectly on ios 10 which I can paste on other apps.

I tested the above on ionic view app.

Did anyone experience the same issue?


#2

Tested with calling cordova plugin directly. It failed the same way as the ionic native plugin.

Looks like the cordova plugin saved to clipboard with a special type that cannot be interpreted by apps like telegram/instagram. It works on notes app.

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