You can share text and media directly to Snapchat.

Checking for availability

Before you share to Snapchat it's best to see first if the app is installed on the user's device. You can do that using the following JS Bridge method

↔️Median JavaScript Bridge

Run the following Median JavaScript Bridge command to share the screen content

const { isInstalled } = await median.socialShare.snapchat.isInstalled();

Sharing media

The plugin only supports media sharing as a Blob object. You can save a remote image as a Blob using the following code snippet. Some other plugins from Median also export images as Blobs which can then be used with this plugin

  fetch("url-to-image")
  .then(function(response) {
    return response.blob();
  })
  .then(function(blob) {
    // here the image is a blob
  });