O'Reilly logo

Hybrid Mobile Development with Ionic by Gaurav Saini

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Social sharing plugin

Sharing content with social media is a great tool for marketing your application and its content, which helps you gain new users. So having a share plugin will be a really fruitful feature for our applications. You can share images, text, messages via Facebook, Twitter, e-mail, SMS, WhatsApp, and so on using this plugin. It uses the Native share plugin to share content and will automatically show all sharing options that you have in your device:

  $ ionic cordova:plugin add cordova-plugin-x-      socialsharing$ npm install @ionic-native/social-sharing --save

SocialSharing has multiple methods that we can use in our application. The most commonly used method is SocialSharing.share, which opens the default platform dialog ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required