Files
eranos/src/components/NativeNotifications.tsx
T
Chad Curtis 64726d2cf7 Add local WebSocket notification polling and Mew splash/notification icons
- Implement Signal-like local-only notifications via direct WebSocket relay polling
- Poll every 60s foreground, 15min background, no external push server
- Resolve NIP-05 display names for notification body (e.g. 'alice@nostr.com reacted to your post')
- Add Capacitor LocalNotifications plugin with POST_NOTIFICATIONS permission
- Replace default Capacitor splash with Mew logo PNG on dark background using Android 12 Theme.SplashScreen
- Add ic_stat_mew vector drawable for notification small icon
- Regenerate splash PNGs with #14161f background
2026-02-19 10:40:38 -06:00

11 lines
325 B
TypeScript

import { useNativeNotifications } from '@/hooks/useNativeNotifications';
/**
* Side-effect component that initializes native device notifications.
* Renders nothing. Must be mounted inside NostrProvider and NostrLoginProvider.
*/
export function NativeNotifications(): null {
useNativeNotifications();
return null;
}