diff --git a/apps/web/components/pwa-install-prompt.tsx b/apps/web/components/pwa-install-prompt.tsx index 89bf3e4ed..6d946560c 100644 --- a/apps/web/components/pwa-install-prompt.tsx +++ b/apps/web/components/pwa-install-prompt.tsx @@ -214,7 +214,20 @@ export function PWAInstallPrompt() { dismiss() }, [nativePrompt, dismiss]) + const openShareMenu = useCallback(async () => { + try { + if (typeof navigator !== "undefined" && "share" in navigator) { + await navigator.share({ + title: "Supermemory", + url: window.location.href, + }) + } + } catch {} + dismiss() + }, [dismiss]) + const canNativeInstall = !!nativePrompt && device.isAndroid && device.isChrome + const canShare = typeof navigator !== "undefined" && "share" in navigator const steps = buildSteps(device) return ( @@ -347,10 +360,20 @@ export function PWAInstallPrompt() {