Repository navigation
v1.6.44 - DM Push Notifications
Release v1.6.44 - DM Push Notifications
🔔 New Features
Push Notifications for Direct Messages
Direct messages now trigger local push notifications on Android and iOS devices, similar to popular messaging apps.
Features:
- 📱 Local push notifications when DMs arrive from other devices
- ✓ Verification badge shown for cryptographically signed messages
- 🔇 Respects notification settings (sound, vibration, enable/disable)
- 👆 Tap notification to open DM conversation
- 📝 Smart message truncation (100 chars) in notification preview
Technical Details:
- Only activates on mobile platforms (Android/iOS)
- Integrates with existing EventBus architecture
- Subscribes to
DirectMessageReceivedEvent - Fires
DMNotificationTappedEventfor UI navigation - Skips notifications for own messages and synced messages
- Uses
flutter_local_notificationsv18.0.1
📋 Permissions
Added POST_NOTIFICATIONS permission for Android 13+ (API 33+)
🔧 Implementation
New Files:
lib/services/dm_notification_service.dart- Core notification service
Updated Files:
lib/util/event_bus.dart- Added DMNotificationTappedEventlib/main.dart- Initialize notification serviceandroid/app/src/main/AndroidManifest.xml- Notification permissiondocs/EventBus.md- Updated documentation
📦 Installation
The notification service initializes automatically on app startup. No configuration needed - it respects your existing notification settings in the app.
Full Changelog: v1.6.43...v1.6.44