Now that we've dealt with the device events, let's get to the real meat of the project: let's add the sharing plugin and see how to use it.
Before continuing, be sure to add the plugin to your project:
cordova plugin add https://github.com/leecrossley/cordova-plugin-social-message.git
This particular plugin is one of many socialnetwork plugins. Each one has its benefits and each one has its problems, and the available plugins are changing rapidly. This particular plugin is very easy to use, and supports a reasonable amount of social networks. On iOS, Facebook, Twitter, Mail, and Flickr are supported. On Android, any installed app that registers with the intent to share is supported.
The full documentation is available at https://github.com/leecrossley/cordova-plugin-social-message at the time of writing this. It is easy to follow if you need to know more than what we cover here.
To show a sharing sheet (the appearance varies based...