> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bbrands.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inbox and notification bell

> Where the customer finds their notifications in the MaihueGO app: the bell on Home, the unread badge, the inbox list and how to mark notifications as read.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** behind a feature flag |
| Route | `/notifications` (app screen) |
| How to open it | The bell on **Home**, or **Account** › **Notifications** |
| Who sees it | Every signed-in customer. Guests are sent to sign-in |
| Feature flag | `maihuego-application-notifications-inbox` (off by default) |
| Last verification | 2026-11-12 against `develop` (`679a4e0c5`) |

## What it is for

The inbox keeps the notifications MaihueGO sends inside the app: a coupon that is now in the wallet, a redeemed
coupon, a notice about the account. The customer can read them again whenever they want, even if they missed the
push or never allowed push on their phone. The bell on Home shows at a glance how many are still unread.

## How to get there

* **From Home:** tap the bell at the top right of the blue header, next to the MaihueGO logo.
* **From the Account tab:** tap **Notifications**. Its description changes to "You have 3 unread notifications"
  when something is unread.
* **With the Liquid Glass bar** (flag `maihuego-application-liquid-glass`, for now in development only): the inbox is
  the **Alerts** tab of the bottom bar, in place of **Account**, and carries the unread count. The screen is still
  titled **Notifications**. Home no longer
  shows the bell and **Account** opens from the greeting avatar. As a tab it has no back arrow.

Tapping a push does not open the inbox: it opens the screen that push points to (see
[Receiving and opening a push](https://docs.bbrands.io/maihuego/notifications/receiving-a-push.md)).

## What the customer sees

![MaihueGO Home screen on an iPhone for the demo account Ana Rojas: blue header with the greeting Good day ANA and, at the top right, a white bell with a red badge showing 1, next to the MaihueGO logo; the Account tab also shows a badge 1.](https://mintcdn.com/bbrands/_njGa-AUVffoWNDA/images/maihuego-notifications-screens/inbox/bell.en.ios.webp?fit=max\&auto=format\&n=_njGa-AUVffoWNDA\&q=85\&s=724fdeb651cdd668e7175a3ac199b47f)

Home with the bell and its badge: the number counts the unread notifications.

![Notifications screen of the demo account: header Notifications with a back arrow and a preferences button, the Mark all as read link, and an unread row Cupón obtenido saying «25% de descuento» de Vendetta ya está en tu billetera, highlighted in light blue with a red dot, its time and the Ver cupón link. The notification keeps the language it was sent in (Spanish).](https://mintcdn.com/bbrands/_njGa-AUVffoWNDA/images/maihuego-notifications-screens/inbox/overview.en.ios.webp?fit=max\&auto=format\&n=_njGa-AUVffoWNDA\&q=85\&s=23c5fde24794c9264ed683e35736894c)

The inbox with an unread notification (light blue background and red dot) and a read one.

| # | Element | What it does |
| - | - | - |
| 1 | Bell with badge | Opens the inbox. The red badge counts unread notifications; above 99 it reads `99+`. With nothing unread there is no badge |
| 2 | **Notifications** header | Back arrow to return, and a sliders button (**Preferences**) that opens [Notification preferences](https://docs.bbrands.io/maihuego/notifications/preferences.md) |
| 3 | **Mark all as read** | Marks every notification as read. Shown only while something is unread |
| 4 | Notification row | Icon, title, date, text (up to three lines) and, when the notification leads somewhere, a link with its own label or **View** |
| 5 | Unread mark | An unread row has a light blue background, a bold title and a red dot on the right |

The date reads as the time for today's notifications, the day and month for this year's, and the full date for
older ones.

## Step by step

### Read a notification

**1. Open the inbox**

Tap the bell on Home or **Account** › **Notifications**. The newest notifications come first.

**2. Tap the notification**

It becomes read at once and the badge goes down by one. If it has a link (for example **View**), the app opens
that screen, or the browser for a web address.

**3. Go back**

Use the back arrow. When you return to Home the badge refreshes.

### Mark everything as read

**1. Tap Mark all as read**

It sits above the list, on the right. Every row turns read at once and the badge disappears.

### See older notifications or refresh the list

* **Older ones:** scroll down. The app loads 20 more at a time and shows a spinner meanwhile.
* **Refresh:** pull the list down.

### Change what you receive

Tap the sliders button at the top right. It opens [Notification preferences](https://docs.bbrands.io/maihuego/notifications/preferences.md).

## Business rules

| ID | Rule |
| - | - |
| R-01 | The inbox belongs to the person's account: every login of the same person sees the same notifications on every phone |
| R-02 | Only notifications sent through the **in-app** channel reach the inbox. Each event has that channel on or off in the catalog, so a push or an email does not always have an inbox copy |
| R-03 | The badge counts **unread** notifications. Opening the inbox does not clear it: reading them or **Mark all as read** does |
| R-04 | The badge refreshes when Home is shown again, every minute, and at once when a push arrives with the app open or the customer taps one |
| R-05 | Tapping a row marks it as read even when it leads nowhere |
| R-06 | A link that starts with `/` opens a screen of the app; a web address opens outside the app |
| R-07 | A notification with an expiry date (for example a 30-day campaign) leaves the list and the badge when it expires |
| R-08 | The text is written on the server in the account's language when it is sent; it does not change if the customer later switches the app language |
| R-09 | With the flag off, the bell and the **Notifications** item are hidden, and opening the screen returns to Home |
| R-10 | Without a session (guest or expired session) the screen sends the customer to sign-in |

## States and messages

| State | What the customer sees | Why |
| - | - | - |
| Loading | Five grey blocks | The first page is loading |
| Empty | **You have no notifications**: "Updates about your account, payments and benefits will show up here." | The account has no in-app notifications yet, or they all expired |
| Loading more | A spinner at the end of the list ("Loading more notifications…" for VoiceOver) | The next 20 are loading |
| Unread | Light blue row, bold title, red dot | Not opened yet |
| Read | White row, normal title | Opened, or marked with **Mark all as read** |
| Account item | **Notifications**: "Updates about your account, payments and benefits", or "You have 3 unread notifications" | Same counter as the bell |
| Older notification without a title | "MaihueGO update" or "You have a new notification" | It was sent before the server wrote the texts |

VoiceOver reads the bell as "Open notifications, 3 unread notifications" ("1 unread notification" for one) and each unread row starting with
"Unread".

## Errors

| Message | Cause | Support action |
| - | - | - |
| "We couldn't load your notifications." with **Try again** | The first page could not be loaded (connection or server) | Ask the customer to tap **Try again**; if it persists, check the connection or report it to Technology |
| Toast **Notifications**: "We couldn't mark your notifications as read. Please try again." | **Mark all as read** failed | The rows reload as they were; try again |
| None (the row turns unread again) | Marking a single notification as read failed | It is retried on the next tap |

## Why it works this way

Push is lost if the customer did not see it or did not allow it. The inbox keeps a copy inside the app, so
nothing important depends on the phone permission. It belongs to the account, not to the phone, so a customer who
changes phones or signs in on a tablet finds the same notifications.

The badge counts what is unread rather than what is new, so that a notice nobody opened is not hidden just
because the customer glanced at the list. Operators decide per event whether it deserves an inbox copy (the in-app
channel), which keeps the inbox for what is useful to read again.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `mobile/maihuego-application/app/(without-tabs)/notifications/index.tsx` › `screens/notifications/inbox/**` |
| Bell | `screens/home/views/home-notification-bell.view.tsx`, `components/notifications/notification-bell-button.tsx` |
| Badge | `hooks/useNotificationInboxBadge.ts`: `GET /api/v3/notification/inbox/me/unread-count` (field `unread`), polled every 60 s |
| Feed | `GET /api/v3/notification/inbox/me?page=&page_size=20`, newest first |
| Actions | `PATCH /inbox/me/{id}/read` (tap), `PATCH /inbox/me/read-all`, `PATCH /inbox/me/seen` (once per visit; it does not change the badge, which counts `unread`) |
| Permission | `notification-inbox:read` and `notification-inbox:update`, held by the customer roles |
| Backend | `backend/horizon-api/lib/notification/read/notification-inbox.service.ts` (table `notification_in_app`, expired items filtered by `expires_at`) |
| Flag | `maihuego-application-notifications-inbox`, read from `GET /api/v3/feature-flag/evaluate` when the app starts and when it returns to the foreground; the last answer is kept on the phone |
| Texts | `locales/{es,en}/notifications.json`: `badge.*`, `inbox.*`, `menu.inbox.*` |
| Screenshots | Maestro flow `mobile/maihuego-application/.maestro/manual/inbox.yaml` |
| Findings | Push actions, button actions, event names and the bell label fixed in issue #2212. Pre-permission screen: issue #2136. Still open: turning the inbox on per account (issue #2267) |

## FAQ and support cases

> [accordion] The customer does not see the bell
>
> The inbox flag is off for the app, or the customer is not signed in. The app reads the flag when it starts and
> when it comes back to the foreground; after the flag is turned on, closing and reopening the app is enough.

> [accordion] The badge does not go away after opening the inbox
>
> Expected: the badge counts unread notifications. Tap each one or use **Mark all as read**.

> [accordion] A push arrived but it is not in the inbox
>
> That event does not have the in-app channel on. For example, the Club coupon events send push and email and
> keep in-app off by default. Check the event's channels in
> [Event channels](https://docs.bbrands.io/enterprise/notifications/catalog/channels.md).

> [accordion] A notification disappeared
>
> It had an expiry date and it passed. Campaign notifications, for example, last 30 days.

> [accordion] Tapping a notification does nothing
>
> It has no link: it only becomes read. If it should lead somewhere, report the event to the notification team.

> [accordion] The customer sees the same notifications on two phones
>
> Expected: the inbox belongs to the account. Reading on one phone marks it read on the other.

> [accordion] The customer changed the app language and a notification is still in the old language
>
> A notification keeps the language it was sent in: the text is written when Horizon sends it, with the
> customer's language at that moment. Notifications that arrive after the change come in the new language.

## Related and history

* [Notification preferences](https://docs.bbrands.io/maihuego/notifications/preferences.md)
* [Receiving and opening a push](https://docs.bbrands.io/maihuego/notifications/receiving-a-push.md)
* [In-app channel](https://docs.bbrands.io/enterprise/notifications/channels/in-app.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-12 | The bell label reads one unread notification in the singular (issue #2212) |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.