+ Browser notifications are not supported in this environment. +
+ ); + } + + // ── Permanently denied ────────────────────────────────────────────────────── + if (permissionState === 'denied') { + return ( ++ Notification permission is blocked. To enable: open your browser's site settings, + allow notifications for this origin, then reload the page. +
++ Background payment notifications +
++ Get notified when a Stellar payment arrives, even when this tab is closed. + {' '} + {!pbsSupported && ( + + Best on Chrome / Edge / Firefox. iOS Safari support is limited. + + )} +
++ Derive your keys above to enable notifications. +
+ )} + + {/* Error */} + {error && ( +{error}
+ )} + + {/* Active — PBS mode */} + {enabled && pbsSupported && ( ++ Active — background scans running (Chrome-controlled interval). +
+ )} + + {/* Active — ping-loop fallback */} + {enabled && !pbsSupported && ( ++ Active — scanning every 5 minutes while this tab is open. + For background scans, use Chrome or Edge. +
+ )} + + {/* Privacy disclosure modal */} + {showDisclosure && ( ++ To scan for payments while the tab is closed, Wraith must store an{' '} + encrypted copy of your viewing key{' '} + in your browser's IndexedDB. +
+ ++ Best supported on:{' '} + Chrome 80+, Edge 80+, Firefox. + iOS Safari 16.4+ has limited background sync — notifications may be delayed. +
+Connected via
+{meta.name}
+{error}
+ )} + + {/* Footer note */} ++ Albedo works in any browser — no extension needed. Other wallets require + their browser extension to be installed. +
+