> ## 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.

# Notification preferences

> How the customer chooses, in the MaihueGO app, which notifications they get by push, email, SMS and in the app, and which ones always arrive.

## At a glance

| Field | Value |
| - | - |
| Status | **Available** behind a feature flag |
| Route | `/notifications/preferences` (app screen) |
| How to open it | Inbox › **Preferences** button, or **Account** › **Settings** › **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-14 against `develop` (`7ea3a157c`) |

## What it is for

The customer decides here how they want to hear from MaihueGO: for example, no promotions by email but yes by
push. Notices that protect the account or the money (security, payments, the service) always arrive, so the
screen shows them locked.

## How to get there

* **From the inbox:** tap the sliders button at the top right (**Preferences**).
* **From the Account tab:** **Settings** › **Notifications**.

With the inbox flag off, **Settings** › **Notifications** opens the iPhone settings of the app instead, as it did
before this screen existed.

## What the customer sees

![Notification preferences screen of the demo account: the text Choose how you want to receive each type of update. Important account notices are always sent; the Security, Your account and Payments cards, each with the Always on chip and its Push, Email, SMS and In the app switches on and greyed out.](https://mintcdn.com/bbrands/_njGa-AUVffoWNDA/images/maihuego-notifications-screens/preferences/overview.en.ios.webp?fit=max\&auto=format\&n=_njGa-AUVffoWNDA\&q=85\&s=af8c0386ef465a5dda637a72e599e5e5)

The preferences: one card per type of notification, with a switch per channel. Locked cards say Always on.

| # | Element | What it does |
| - | - | - |
| 1 | **Push notifications are turned off** banner | Only when push is denied on the phone. **Open settings** goes to the iPhone settings of the app |
| 2 | Description | "Choose how you want to receive each type of update. Important account notices are always sent." |
| 3 | Category cards | **Security**, **Your account**, **Payments**, **Service** and **Promotions and news**, in that order, each with its description |
| 4 | Channel switches | **Push**, **Email**, **SMS** and **In the app**, one per row |
| 5 | **Always on** chip | The card cannot be turned off: its switches stay on and greyed out |
| 6 | **Specific updates** | "Fine-tune specific updates within each type." One card per event the customer may turn off, named in the app's language (for example **Coupon obtained**), with its category under the name |

The categories and what they cover:

| Card | Description in the app | Can be turned off |
| - | - | - |
| **Security** | "Sign-ins and security changes to your account." | No |
| **Your account** | "Your plan, refills and coupons." | No as a whole; some events yes, under **Specific updates** |
| **Payments** | "Charges, declined payments and payment methods." | No |
| **Service** | "Service and machine notices." | No |
| **Promotions and news** | "Promotions, news and Club benefits." | Yes, per channel |

The events under **Specific updates** and their name in the app. Each name shows in the app language (Spanish,
English, French, Italian or Portuguese):

| Card in English | In Spanish | Category | Catalog event |
| - | - | - | - |
| **Club Maihue coupon obtained** | Cupón obtenido en Club Maihue | Your account | `club.coupon.obtained` |
| **Club Maihue coupon redeemed** | Cupón canjeado en Club Maihue | Your account | `club.coupon.redeemed` |
| **Club Maihue coupon about to expire** | Cupón de Club Maihue por vencer | Promotions and news | `club.coupon.expiry-due` |
| **Activation satisfaction survey** | Encuesta de satisfacción de la activación | Your account | `maihue.csat-survey.activation-due` |
| **Incident satisfaction survey** | Encuesta de satisfacción de la incidencia | Your account | `maihue.csat-survey.incident-due` |
| **Maintenance satisfaction survey** | Encuesta de satisfacción de la mantención | Your account | `maihue.csat-survey.maintenance-due` |
| **Maihue Lunch menu reminder** | Recordatorio del menú de Maihue Lunch | Promotions and news | `maihue-lunch.menu.reminder-due` |
| **App news** | Novedades de la app | Promotions and news | `marketing.app-update.announced` |
| **Campaigns and promotions** | Campañas y promociones | Promotions and news | `marketing.campaign.launched` |
| **Your guest signed up** | Tu invitado dejó sus datos | Your account | `referral.invitee.submitted` |
| **Referral not completed** | Referido no concretado | Your account | `referral.referral.not-completed` |
| **Referral reward available** | Premio por referido disponible | Your account | `referral.reward.available` |
| **Reminder to choose your referral reward** | Recordatorio para elegir tu premio por referido | Your account | `referral.reward.choice-reminder-due` |

A card shows only when the event has at least one active channel in the catalog, and it shows only those channels.

## Step by step

### Stop promotions on one channel

**1. Open the preferences**

From the inbox, tap **Preferences**; or go to **Account** › **Settings** › **Notifications**.

**2. Find Promotions and news**

It is the last category card.

**3. Turn off the channel**

Tap the switch of the channel, for example **Email**. It is saved at once; there is no save button.

### Turn off a specific notification

**1. Scroll to Specific updates**

It is below the category cards, when there are events you can turn off.

**2. Turn off the channel of that event**

For example, under the Club coupon card, turn off **Push** to keep getting it only by email.

### Turn push back on when the phone blocks it

If the yellow banner **Push notifications are turned off** shows, tap **Open settings** and allow notifications
(see [Push permission](https://docs.bbrands.io/maihuego/notifications/push-permission.md)). When you come back, the banner disappears.

## Business rules

| ID | Rule |
| - | - |
| R-01 | Only **Promotions and news** can be turned off per channel as a whole category |
| R-02 | **Security** always arrives, on every channel, even at night and even if the address is suppressed |
| R-03 | **Payments** and **Service** always arrive; they still respect quiet hours on push (see [Receiving and opening a push](https://docs.bbrands.io/maihuego/notifications/receiving-a-push.md)) |
| R-04 | **Your account** is locked as a category, but the events marked as opt-out-able in the catalog (for example the Club coupons) show under **Specific updates** and can be turned off per channel |
| R-05 | An event switch wins over its category. A promotional event follows **Promotions and news** until the customer changes it |
| R-06 | Each switch is saved on its own as soon as it is tapped |
| R-07 | Preferences belong to the account: they apply on every phone and every login of the person, and to email and SMS too |
| R-08 | A send that was waiting (for example a push held overnight) is checked again before it goes out: if the customer turned it off meanwhile, it is cancelled |
| R-09 | Preferences decide whether MaihueGO sends; they do not change the phone permission. A push switch on does nothing if the phone blocks push |
| R-10 | If the preferences cannot be read at send time, promotions are not sent and every other notice is |
| R-11 | Live activities and WhatsApp are not shown here |
| R-12 | The unsubscribe link at the bottom of an email the customer may opt out of writes the same account preference this screen shows |
| R-13 | Each event name shows in the app language. A new event the app does not translate yet shows the catalog name, in English |

## States and messages

| State | What the customer sees | Why |
| - | - | - |
| Loading | Four grey blocks | The preferences are loading |
| Push blocked | **Push notifications are turned off**: "Allow notifications in your phone settings to receive push updates." with **Open settings** | The phone denies push to the app |
| Locked card | **Always on** chip and greyed switches | The category cannot be turned off |
| Empty | "There are no preferences you can change right now." | The server answered nothing the app can show |
| Coming soon | **Soon you'll be able to choose your updates here**: "In the meantime you can turn push notifications on or off in your phone settings." with **Open phone settings** | The account's role does not have the preference permissions (customer roles have them) |

## Errors

| Message | Cause | Backend code | Support action |
| - | - | - | - |
| "We couldn't load your preferences." with **Try again** | Connection or server error | 5xx or no network | Tap **Try again**; if it persists, report it to Technology |
| Toast **Notification preferences**: "We couldn't save the change. Please try again." | The change was refused or did not reach the server; the switch goes back | 400 or 5xx | Try again. If it always fails, the login may have no person account (see below) |

## Why it works this way

The customer must be able to stop promotions on any channel. A charge that
failed or a sign-in from a new phone, on the other hand, must reach them even if they muted everything, so those
categories cannot be turned off. Inside **Your account** some notices are nice to have but not essential (a coupon
that arrived), and the catalog marks them one by one so the customer can mute only those.

Preferences belong to the account and not to the phone because the same notice can go out by email, SMS or push:
one decision covers every channel and every device.

## Technical detail

| Aspect | Detail |
| - | - |
| Screen | `mobile/maihuego-application/app/(without-tabs)/notifications/preferences.tsx` › `screens/notifications/preferences/**` |
| Data | `GET /api/v3/notification/preference/me`: one cell per channel × category with `is_enabled` and `suppressible`, plus one cell per channel of each opt-out-able event (`notification_event`, `event_key`, `event_name`) |
| Change | `PUT /api/v3/notification/preference/me` with `category`, `channel`, `is_enabled` and, for an event, `notification_event`; applied on screen at once and rolled back on error |
| Permission | `notification-preference:read-own` and `notification-preference:update-own` (customer roles). A 403 shows the "coming soon" card |
| Locked rule | `SUPPRESSIBLE_CATEGORIES = ['marketing']` in `backend/horizon-api/lib/endpoint/notification-preference/notification-preference.service.ts`; a `PUT` that turns off another category answers 400 |
| Engine | `lib/notification/eligibility/category-rules.ts` (bypass per category) and `eligibility/preferences.ts` (event row › category row › on) |
| Push banner | `readOneSignalPushState()` (`utils/onesignal.ts`), read again every time the screen gains focus; shown only for `denied` |
| Texts | `locales/{es,en,fr,it,pt}/notifications.json`: `preferences.*`, `menu.preferences.*` |
| Event names | The app translates each event by its catalog key (`event_key`) with `preferences.events.names.<key>` (dots and dashes become `_`); without a translation it uses `event_name`, the English catalog name. The event list lives in `PREFERENCE_EVENT_KEYS` (`preferences.utils.ts`) and a test compares it with the `optOutAble` events of the `horizon-api` registry |
| Screenshots | Maestro flow `mobile/maihuego-application/.maestro/manual/preferences.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] I turned off promotions but I still get notifications
>
> Check what they are. Security, payment, service and account notices are not promotions and always arrive.
> Promotions turned off on one channel (for example **Email**) still arrive on the channels left on (for example
> **Push**). And a customer with two accounts (for example personal and company) has preferences per account.

> [accordion] Why can't I turn off Security or Payments?
>
> They protect the account and the money: a sign-in from a new phone or a declined charge must reach the
> customer. The app shows them with **Always on**.

> [accordion] Push is on here but nothing arrives
>
> The phone may block push to the app. If it does, the screen shows the yellow banner; follow
> [Push permission](https://docs.bbrands.io/maihuego/notifications/push-permission.md). Otherwise see the checklist in
> [Receiving and opening a push](https://docs.bbrands.io/maihuego/notifications/receiving-a-push.md).

> [accordion] The change is never saved
>
> If every switch goes back with "We couldn't save the change. Please try again.", the login may have no person
> account: the server shows the default preferences but cannot store a change. Report the customer's email to
> Technology.

> [accordion] The screen says Soon you'll be able to choose your updates here
>
> The role of that login lacks the preference permissions. Customer roles have them; report the case to
> Technology with the customer's email.

> [accordion] An event under Specific updates shows its name in English
>
> The app names the events it knows in the customer's language. A new event shows the English name of the
> notification catalog until the app adds it: report it to the notification team.

## Related and history

* [Inbox and notification bell](https://docs.bbrands.io/maihuego/notifications/inbox.md)
* [Push permission](https://docs.bbrands.io/maihuego/notifications/push-permission.md)
* [Event channels](https://docs.bbrands.io/enterprise/notifications/catalog/channels.md)

| Date | Change |
| - | - |
| 2026-11-11 | First version |
| 2026-11-12 | Specific updates show the event names in the app's language (issue #2212) |
| 2026-11-14 | Event names keyed by the catalog key, so they show translated; Maihue Lunch reminder named; events table |
| 2026-11-20 | The three Maihue satisfaction surveys (activation, incident, maintenance) join Specific updates |


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