I am pretty new to Javascript and Ionic framework . I want to share a local file which has the path "/assets/input.json" using SocialShare Plugin and I want to share this local file which is of .json extension into a .txt file through the app.
Can anyone please help with how should I use this plugin to access my local file and how can I convert it into a text file for sharing it.
Try this Reference : https://www.npmjs.com/package/cordova-plugin-x-socialsharing
For file conversion from .json to .txt you can read & write file using js (https://www.websparrow.org/web/how-to-create-and-save-text-file-in-javascript) and ionic libraries https://ionicframework.com/docs/native/file