Links
🖼

Share Media/Files

🧋 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

1
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
2
window.natively.shareImage(imageUrl);

Share Text

1
const text = "Text for sharing";
2
window.natively.shareText(text);

Share Text & Image

1
const text = "Text for sharing";
2
const imageUrl = "https://awik.io/wp-content/uploads/2018/06/unsplash.jpg";
3
window.natively.shareTextAndImage(text, imageUrl);

Share File

1
const fileUrl = "http://www.africau.edu/images/default/sample.pdf";
2
window.natively.shareFile(fileUrl);