---
title: "didStartSending(_:conversation:)"
framework: messages
role: symbol
role_heading: Instance Method
path: "messages/msmessagesappviewcontroller/didstartsending(_:conversation:)"
---

# didStartSending(_:conversation:)

Invoked when the user sends a message object.

## Declaration

```swift
func didStartSending(_ message: MSMessage, conversation: MSConversation)
```

## Parameters

- `message`: The message being sent.
- `conversation`: The conversation that the user is currently viewing in the Messages app.

## Mentioned in

Adding Sticker packs and iMessage apps to the system Stickers app, Messages camera, and FaceTime

## Discussion

Discussion Override this method to respond when the user sends an MSMessage object. This method is called if you use the conversation’s insert(_:completionHandler:) method to add an MSMessage object to the Messages app’s input field, and the user taps Send. It does not guarantee  that the message will be successfully sent or delivered. The system does not call this method if the controller’s presentationStyle property is MSMessagesAppPresentationStyle.transcript, or if its presentationContext property is MSMessagesAppPresentationContext.media.

## See Also

### Tracking Messages

- [willSelect(_:conversation:)](messages/msmessagesappviewcontroller/willselect(_:conversation:).md)
- [didSelect(_:conversation:)](messages/msmessagesappviewcontroller/didselect(_:conversation:).md)
- [didReceive(_:conversation:)](messages/msmessagesappviewcontroller/didreceive(_:conversation:).md)
- [didCancelSending(_:conversation:)](messages/msmessagesappviewcontroller/didcancelsending(_:conversation:).md)
