How to socialshare in browser


#1

I would like to implement socialshare’s functionality in browser version.

However, ionic Native’s Social Sharing can only be used with applications.

In the ionic document, it is described as follows.
「For Browser usage check out the Web Share API docs: https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin#web-share-api」

However, although the above method uses cordova.js, cordova can not be used when ionic is deployed on WEB.

I would like to know how to implement social share when ionic is deployed on the web.


#2

Hi.
You can try:

ionic cordova platform add browser
ionic cordova run browser

test the socialsharing


#3

I did release a couple of days ago a social share action sheet built with Stencil aka compatible with the browser/pwa. If you want to give a try:

Showcase at https://web-social-share.firebaseapp.com
Repo https://github.com/peterpeterparker/web-social-share

giphy