Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Cordova plugins supported in Ionic 2?

$
0
0

There are no abstractions for plugins (like ngCordova) provided for Ionic 2 yet, but you can still just use Cordova plugins using the normal syntax. No need to import anything or set anything up (unless the plugin requires some additional configuration), just ionic plugin add [plugin] and you're good to go.

To see if you're getting errors on the device use a program like GapDebug. For now, you can try changing your click handler to:

(click)="socialShare()"

and then add this function to your class:

socialShare(){
    window.plugins.socialsharing.share('Message, image and link', null, 'https://www.google.nl/images/srpr/logo4w.png', 'http://www.x-services.nl');
}

Viewing all articles
Browse latest Browse all 228595

Trending Articles



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