Feature Enhancement: Improve Notification Content
Description
Currently, notifications show generic text without context about the specific event type. This enhancement would make notifications more informative by including event-specific details.
Suggested Implementation
Modify the showLocalNotification method in lib/notifications/notification_service.dart to:
- Extract and display relevant information from the NostrEvent:
- 'New Mostro Event',
- 'You have received a new message from Mostro',
+ 'New Mostro ${event.kind == 1059 ? "Message" : "Event"}',
+ 'You have received a ${event.kind == 1059 ? "new message" : "notification"} related to ${event.orderId ?? "your account"}',
- Add payload data to enable deep linking:
details,
+ payload: {'orderId': event.orderId, 'eventId': event.id},
References
Benefits
- More informative notifications for users
- Better context for different event types
- Support for deep linking when notification is tapped
This feature is planned for a future release after the current implementation is stabilized.
Feature Enhancement: Improve Notification Content
Description
Currently, notifications show generic text without context about the specific event type. This enhancement would make notifications more informative by including event-specific details.
Suggested Implementation
Modify the
showLocalNotificationmethod inlib/notifications/notification_service.dartto:details, + payload: {'orderId': event.orderId, 'eventId': event.id},References
Benefits
This feature is planned for a future release after the current implementation is stabilized.