Register your application as a native system Share Sheet target to receive shared images, text, and URLs from other apps.
Register your application as a native system Share Sheet target. Nativine embeds native iOS Share Extensions (NSExtension) and Android ACTION_SEND intent filters, allowing users to share text, web links, images, and files into your mobile app from any other app.
Allowing users to share content directly into your platform drives user engagement. Nativine's Share Into App plugin registers your app icon inside OS system Share Sheet menus (Safari, Photos, Files, Chrome):
/create-post?shared_url=...) populated with shared payload data.To inspect or handle incoming shared payloads in JavaScript when the app is launched via Share Sheet, call nativine.shareReceiver.getSharedContent():
// Check if app was launched via Share Sheet
nativine.shareReceiver.getSharedContent({
callback: 'onSharedContentReceived'
});
function onSharedContentReceived(payload) {
if (payload.hasContent) {
console.log("Shared Text/URL:", payload.text || payload.url);
console.log("Shared Media Files:", payload.fileUris);
}
}
| Parameter | Type | Description |
|---|---|---|
callback | string | Required. JS callback function receiving shared content payload object. |
Yes. Shared photos are cached locally in app temporary storage and local file URIs are returned to JavaScript.
Yes. Incoming shares automatically append query parameters to your configured receiver URL.