<!--
{
  "availability" : [
    "iOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "TelephonyMessagingKit",
  "identifier" : "/documentation/TelephonyMessagingKit/RCSService/incomingMessageNotifications",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "TelephonyMessagingKit"
    ],
    "preciseIdentifier" : "s:21TelephonyMessagingKit10RCSServiceC28incomingMessageNotificationsQrvp"
  },
  "title" : "incomingMessageNotifications"
}
-->

# incomingMessageNotifications

An asynchronous sequence of incoming message notifications produced by this service.

```
final var incomingMessageNotifications: some AsyncSequence<RCSService.IncomingMessageNotification, Never> { get throws }
```

## Discussion

Iterate over this sequence with a `for`-`await`-`in` loop to receive [`RCSService.IncomingMessageNotification`](/documentation/TelephonyMessagingKit/RCSService/IncomingMessageNotification) instances that indicate the arrival of incoming messages, like this:

```swift
let service = TelephonyMessagingSession.shared.rcsService

let incomingMessageNotifications = try service.incomingMessageNotifications
Task {
    for await notification in incomingMessageNotifications {
        let receivedMessage = notification.message
        switch receivedMessage.content {
            case .text(let text): // ...
            case .fileTransfer(let fileTransfer): // ...
            case .geolocationPush(let geolocationPush): // ...
            case .dispositionNotification(let dispositionNotification): // ...
            case .composingIndicator(let composingIndicator): // ...
        }
    }
```

For each message type, the matched `case` contains an instance of the relevant [`RCSMessage.Content`](/documentation/TelephonyMessagingKit/RCSMessage/Content-swift.enum) type as its associated value.
In this example, `text` would contain string content in its [`body`](/documentation/TelephonyMessagingKit/RCSMessage/Text/body) property, and `geolocationPush` would have geolocation values in its [`latitude`](/documentation/TelephonyMessagingKit/RCSMessage/GeolocationPush/latitude) and [`longitude`](/documentation/TelephonyMessagingKit/RCSMessage/GeolocationPush/longitude) properties.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)