The npm package cordova-plugin-share-me receives a total of 5 downloads a week. There are some third-party Cordova plugins which you can add to your project right from the Cordova Plugins page. Cordova Plugin to open native "share" popup in Android and iOS Resources Capacitor plugins … Latest version published 5 years ago. As known, Cordova create APPs by using HTML, CSS, and JavaScript, but without plugins Cordova can not communicate with device modules or native components in mobile phones. , window.plugins.socialsharing.shareVia('com.apple.social.facebook', 'Message via FB', null, null, null, function(){console.log('share ok')}, function(msg) {alert('error: ' + msg)}), , window.plugins.socialsharing.shareVia('facebook', 'Message via FB', null, null, null, function(){console.log('share ok')}, function(msg) {alert('error: ' + msg)}), , window.plugins.socialsharing.shareVia('com.apple.social.twitter', 'Message via Twitter', null, null, 'http://www.x-services.nl', function(){console.log('share ok')}, function(msg) {alert('error: ' + msg)}), , window.plugins.socialsharing.shareVia('bogus_app', 'Message via Bogus App', null, null, null, function(){console.log('share ok')}, function(msg) {alert('error: ' + msg)}), window.plugins.socialsharing.canShareVia('com.tencent.mm/com.tencent.mm.ui.tools.ShareToTimeLineUI', 'msg', null, img, null, function(e){alert(e)}, function(e){alert(e)}), window.plugins.socialsharing.canShareVia('com.apple.social.facebook', 'msg', null, null, null, function(e){alert(e)}, function(e){alert(e)}), window.plugins.socialsharing.canShareVia('whatsapp', 'msg', null, null, null, function(e){alert(e)}, function(e){alert(e)}), window.plugins.socialsharing.canShareVia('sms', 'msg', null, null, null, function(e){alert(e)}, function(e){alert(e)}), window.plugins.socialsharing.canShareVia('instagram', 'msg', null, null, null, function(e){alert(e)}, function(e){alert(e)}), , window.plugins.socialsharing.canShareViaEmail(function(e){alert(e)}, function(e){alert(e)}). The trick is overriding the function window.plugins.socialsharing.iPadPopupCoordinates by your own implementation Make sure though you include a reference to cordova.js in your index.html's head: You can share text, a subject (in case the user selects the email application), (any type and location of) file (like an image), and a link. Website. Currently, URLs, text and images are supported. Cordova social sharing plugin net.avantic.diagnosticplugin. How does it work? If you want to exclude (for example) the assign-to-contact and copy-to-pasteboard options, add this to your main plist file: Here's the list of available activities you can disable : Chrome introduced the Web Share API to share data: It doesn't provide all the options that the other share methods do but it is spec compliant. Navigate into the project and add the android platform. Graeme Mawson Senior Principal Product Manager. Important notes: For stable usage of shareViaSMS on Android 4.4 and up you require to add at least one phonenumber! The Cordova's Plugin file implements a File API that enables a user to perform read/write operation on the stored device files. See this page for details. If you can't get the plugin to work, have a look at this demo project. You can find those abid's by using the Cordova Contacts Plugin. Cordova also generates a basic skeleton native app for the respective Mobile OS for us through a set of CLI(Command Line Interface) Commands.Once this native skeleton … The plugin passes a boolean to the successCallback to let the app know whether or not content was actually shared, or the share widget was closed by the user. Android: Anything that would otherwise appear in the sharing dialoge (in case the, com.apple.UIKit.activity.CopyToPasteboard, com.apple.UIKit.activity.SaveToCameraRoll, com.apple.UIKit.activity.AddToReadingList. cordova-plugin-share v0.1.3. Cordova Diagnostic Plugin nl.madebymark.share. Subject is also supported, when the receiving app supports it. Share text, images and urls to Facebook, Twitter and more. Capacitor plugins are installed using your regular package manager and then synced to the native project (s). This plugin allows a user to access all the main functionality of the file like read, write, access, delete, etc. 1. Format with x,y,width,height, // On Android apps mostly return false even while it's true, // On Android result.app since plugin version 5.4.0 this is no longer empty. The available methods on WP8 are: available, canShareViaEmail, share, shareViaEmail and shareViaSMS. If you only want to gain access to an existing Cordova plugin that you can’t find in the Forge, skip to step 7. Through plugins, Cordova communicates with native components including hardware devices. 09/10/2015; 3 minutes to read; j; g; M; In this article. It's only supported on iOS for now and falls back to just message sharing on Android -->, window.plugins.socialsharing.shareViaSMS({'message':'My cool message', 'subject':'The subject', 'image':'https://www.google.nl/images/srpr/logo4w.png'}, '0612345678,0687654321', function(msg) {console.log('ok: ' + msg)}, function(msg) {alert('error: ' + msg)}), // can contain HTML tags, but support on Android is rather limited: http://stackoverflow.com/questions/15136480/how-to-send-html-content-with-image-through-android-default-email-client, 'https://www.google.nl/images/srpr/logo4w.png', // FILES: can be null, a string, or an array. However, what exactly gets shared, depends on the application the user chooses to complete the action. Plugins may list the dependencies for multiple releases to provide guidance to the Cordova CLI when it is selecting the version of a plugin to fetch from npm. I think WebIntent might suit you. now adding social media in your app become easy with this plugin.you can share text, images or a url via this plugin.about this plugin:this plugin use native sharing window of your device.it supports android, ios, windows platform.it works on android 2.3 or higher version, ios 6 or higher and window 8.installation: first, we have to install the plugin in our cordova … Installation Automatically (CLI / Plugman) Manually PhoneGap Build 4a. Package Health Score. This Cordova plugin lets the Cordova app access the underlying native SQLite database by providing an API identical to the Web SQL API. Import Types into an Ionic Angular Project, Import Types into an Ionic Angular Project, this Facebook issue which they won't solve. Contribute to dpa99c/cordova-diagnostic-plugin development by creating an account on GitHub. Share text, files, images, and links via social networks, sms, and email. Application preferences plugin me.apla.cordova.share-social. Add this reference into your typings file definition: // this is the complete list of currently supported params you can pass to the plugin (all optional), // not supported on some apps (Facebook, Instagram), // an array of filenames either locally or remotely, // Android only, you can override the default share sheet title, // Android only, you can provide id of the App you want to share with, //IOS only iPadCoordinates for where the popover should be point. Import Types into an Ionic Angular Project cordova start project_name. Third-party Cordova plugins refer to other existing Cordova plugins. ', function() {console.log('share ok')}, function(errormsg){alert(errormsg)}), window.plugins.socialsharing.shareViaInstagram('Message via Instagram', 'https://www.google.nl/images/srpr/logo4w.png', function() {console.log('share ok')}, function(errormsg){alert(errormsg)}), window.plugins.socialsharing.shareViaWhatsApp('Message via WhatsApp', null /* img */, null /* url */, function() {console.log('share ok')}, function(errormsg){alert(errormsg)}), window.plugins.socialsharing.shareViaWhatsAppToPhone('+31611111111', 'Message via WhatsApp', null /* img */, null /* url */, function() {console.log('share ok')}), window.plugins.socialsharing.shareViaWhatsAppToReceiver('101', 'Message via WhatsApp', null /* img */, null /* url */, function() {console.log('share ok')}),