ergoplatform/ergo-wallet-app

Notifications for Mosaik App

MrStahlfelge opened this issue · 0 comments

Latest Mosaik Model prepared notifications from dApp. This should be integrated into wallet app.

  • DB: Add mosaik_app fields notification_url, last_notification_message: String?, last_notification_ms: Long, next_notification_check_ms: Long, notification_unread: Boolean)
  • for favorite apps with next_check_ms already reached, check the notifications on wallet refresh and save result into db. unread flag is set to true if the message is not null and timestamp is different from former message or if former message was unread
  • also do this in background balance check #11 . if there are new unread notifications detected in background balance check, show a notification to the user
  • in bottom navigation view, add a notification bubble with the number of unread app notifications
  • in mosaik app overview, add the notifications to the app entries and emphasize unread app notifications. Show only unread and show only up to three lines.
  • set as read when the app is visited.