<!--
{
  "availability" : [
    "iOS: 11.0.0 -",
    "iPadOS: 11.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Messages",
  "identifier" : "/documentation/Messages/MSMessageErrorCode/sendWhileNotVisible",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "Messages"
    ],
    "preciseIdentifier" : "c:@E@MSMessageErrorCode@MSMessageErrorCodeSendWhileNotVisible"
  },
  "title" : "MSMessageErrorCode.sendWhileNotVisible"
}
-->

# MSMessageErrorCode.sendWhileNotVisible

A message was sent while the app was not visible.

```
case sendWhileNotVisible
```

## 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.

---

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)