64726d2cf7
- 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
11 lines
325 B
TypeScript
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;
|
|
}
|