---
title: message
framework: gamekit
role: symbol
role_heading: Instance Property
path: gamekit/gkturnbasedmatch/message
---

# message

A message from the current participant to all other participants when you end a turn, forfeit a match, or end a match.

## Declaration

```swift
var message: String? { get set }
```

## Mentioned in

Sending messages to players in turn-based games

## Discussion

Discussion Set this property only when the local player is the current participant and before you invoke a method that generates a turn-based event. If your game instance isn’t running or is running in the background on other participant devices, a notification containing the message appears at the top of the screen. If the game is in the foreground, you can get the message from the match object when handling the turn-based event.

## See Also

### Sending Messages Between Participants

- [setLocalizableMessageWithKey(_:arguments:)](gamekit/gkturnbasedmatch/setlocalizablemessagewithkey(_:arguments:).md)
- [sendReminder(to:localizableMessageKey:arguments:completionHandler:)](gamekit/gkturnbasedmatch/sendreminder(to:localizablemessagekey:arguments:completionhandler:).md)
