πΌοΈShare Media/Files
Sharing media files in your mobile app can enhance user engagement, serve as a tool for viral marketing, improve the user experience, help build a community, distribute content, encourage UGC.
π§ Bubble.io Plugin
[Action] Natively - Share
Type - text, image, text and image or file
Image Url
Text or Url
File Url
First of all, specify a type if you want to share just a URL, select Type (text), and provide a URL in the Text or Url field.
Same for Text/Url + Image. Selecting a Type (both) and filling a Text or Url and Image Url fields.
For files, you need to select Type (file), and provide a URL in the File url field
π JavaScript SDK
Share Image
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
window.natively.shareImage(imageUrl);
Share Text
const text = "Text for sharing";
window.natively.shareText(text);
Share Text & Image
const text = "Text for sharing";
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
window.natively.shareTextAndImage(text, imageUrl);
Share File
const fileUrl = "http://www.africau.edu/images/default/sample.pdf";
window.natively.shareFile(fileUrl);
Last updated
Was this helpful?