Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 48983

Capacitor Clipboard IOS not working

$
0
0

Hi,

I am using the Capacitor/Clipboard plugin for an IOS app. And it seems to not work. I am guessing I have to enable something in the info.plist file somehow?

const copyToClipboard = (selectedItem: string) => {
      const writeToClipboard = async () => {
        await Clipboard.write({
          string: selectedItem,
        });
      };
    
    };

This is the code I am using, copied directly from the plugin page (Capacitor - build cross platform apps with the web)

Thanks in advance.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 48983

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>