---
title: MSMessageErrorCode.sendWhileNotVisible
framework: messages
role: symbol
role_heading: Case
path: messages/msmessageerrorcode/sendwhilenotvisible
---

# MSMessageErrorCode.sendWhileNotVisible

A message was sent while the app was not visible.

## Declaration

```swift
case sendWhileNotVisible
```

## Discussion

Discussion An iMessage app can send messages only in response to user interaction with the app. If an app isn’t currently visible and onscreen, it can’t send any messages.

## See Also

### Error Codes

- [MSMessageErrorCode.fileNotFound](messages/msmessageerrorcode/filenotfound.md)
- [MSMessageErrorCode.fileUnreadable](messages/msmessageerrorcode/fileunreadable.md)
- [MSMessageErrorCode.improperFileType](messages/msmessageerrorcode/improperfiletype.md)
- [MSMessageErrorCode.improperFileURL](messages/msmessageerrorcode/improperfileurl.md)
- [MSMessageErrorCode.stickerFileImproperFileAttributes](messages/msmessageerrorcode/stickerfileimproperfileattributes.md)
- [MSMessageErrorCode.stickerFileImproperFileSize](messages/msmessageerrorcode/stickerfileimproperfilesize.md)
- [MSMessageErrorCode.stickerFileImproperFileFormat](messages/msmessageerrorcode/stickerfileimproperfileformat.md)
- [MSMessageErrorCode.urlExceedsMaxSize](messages/msmessageerrorcode/urlexceedsmaxsize.md)
- [MSMessageErrorCode.sendWithoutRecentInteraction](messages/msmessageerrorcode/sendwithoutrecentinteraction.md)
- [MSMessageErrorCode.apiUnavailableInPresentationContext](messages/msmessageerrorcode/apiunavailableinpresentationcontext.md)
- [MSMessageErrorCode.unknown](messages/msmessageerrorcode/unknown.md)
