How can I share audio files?


#1

Hello,

I am trying to create a soundboard with ionic and I want to implement the possibility to share audio files through Whatsapp & Co. I tried it with the social sharing plugin, but its not working with audio files. Here is my code:

public share(url: string){

this.socialSharing.share(null, null,'/android_asset/www/assets/' + url, null).then(() => {
  console.log("shareSheetShare: Success");
}).catch(() => {
  console.error("shareSheetShare: failed");
});

}

Can anyone help me?