> For the complete documentation index, see [llms.txt](https://docs.payments.thalescloud.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.payments.thalescloud.io/transit-digitization/ja/apple-transit-wosuru/kdobsunochikettingu-cbt/messji.md).

# メッセージ通知

Notifications are triggered by Transit Issuer willing to send messages to specific users / digital cards.

This section provides an overview of the workflow, including detailed steps, sequence diagrams, and potential error scenarios.

### Workflow <a href="#workflow" id="workflow"></a>

Below are the high level steps of the message notification workflow:

1. **Notification initiation** : The Transit Issuer instructs D1 Transit to send a message to a targeted digital card.
2. **Device notification**: D1 Transit uses APNS in order to send a push notification to the right device.
3. **Message retrieval**: Device connects to D1 Transit platform in order to retrieve the content of the message.

### Sequence Diagram <a href="#sequence-diagram" id="sequence-diagram"></a>

#### Notification initiation <a href="#notification-initiation" id="notification-initiation"></a>

The Transit issuer instructs D1 Transit to send a message to the specified digital card using handleEvent API.

#### Device notification and Message retrieval <a href="#device-notification-and-message-retrieval" id="device-notification-and-message-retrieval"></a>

D1 Transit platform uses APNS to send a push notification to the device. The device connects to D1 Transit in order to retrieve the message content details which D1 Transit pulls from Transit Issuer.

**Error Scenarios**

**Device is offline**

If the device is offline, the request to notify the message is queued and will be sent to the device as soon as it reconnects.

<figure><img src="broken://spaces/SokLBgfEhZisVFcUdPiW/files/rZrLV9yGt7LIIUAJemAg" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.payments.thalescloud.io/transit-digitization/ja/apple-transit-wosuru/kdobsunochikettingu-cbt/messji.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
