Share into App
Make your app appear in other apps' share menu so shared links and text open your app and reach your page, with the Share into App plugin.
Overview
With Share into App, your app appears in other apps' share menu. When a user shares a link or text to your app, it opens and your page receives it, for example to save a link, create a post or start a search.
Turn it on in Integrations › Native plugins and build a new version.
iPhone setup: the app gets a Share extension and an App Group. Connect your App Store Connect API key in Release › Publish so they are set up automatically; without it, iPhone builds with this plugin do not start. The plugin settings show whether everything is ready.
Receive shared content
wapp.on('share_to_app', (data) => {
// data: { url, text, subject, files: [], receivedAt }
openComposer({ link: data.url, note: data.text });
});
// or define a global function: function wapp_share_to_app(data) { ... }The content waits until your page has loaded, so nothing is lost when the app was closed.
wapp.share.getReceived()returns the last shared item.wapp.share.clearReceived()forgets it.
Limits
Links and text are supported. files is always an empty list: sharing images and files into the app is not supported yet.
Sharing out of your app
To open the native share sheet from your page, use navigator.share() or wapp.share.open(); no plugin is needed. See the API reference.