简体   繁体   中英

How can i share media with my ionic app

I want to share my images and videos with application which was developed with ionic framework. How can I share them?

Have a look at Cordova Sharing Plugin ; that plugin let you share "content" using a native dialog to select the app to share with, or you can specifiy some popular apps to use for sharing (Twitter, Facebook, ...).

You can easily share images, text and links, but there are some limitations (particularly for Facebook). If you want to build a custom image to use for share (say a text with an avatar) you can prepare the image in pure Javascript using an HTML5 canvas.

For more information you can check this blog post , where the Cordova Sharing Plugin is used together with the HTML5 canvas approach.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM