---
title: appNotForeground
framework: pushtotalk
role: symbol
role_heading: Type Property
path: pushtotalk/ptchannelerror-swift.struct/appnotforeground
---

# appNotForeground

A channel error that indicates the operation failed because the app isn’t in the foreground.

## Declaration

```swift
static var appNotForeground: PTChannelError.Code { get }
```

## See Also

### Constants

- [unknown](pushtotalk/ptchannelerror-swift.struct/unknown.md)
- [channelNotFound](pushtotalk/ptchannelerror-swift.struct/channelnotfound.md)
- [channelLimitReached](pushtotalk/ptchannelerror-swift.struct/channellimitreached.md)
- [callActive](pushtotalk/ptchannelerror-swift.struct/callactive.md)
- [transmissionInProgress](pushtotalk/ptchannelerror-swift.struct/transmissioninprogress.md)
- [transmissionNotFound](pushtotalk/ptchannelerror-swift.struct/transmissionnotfound.md)
- [deviceManagementRestriction](pushtotalk/ptchannelerror-swift.struct/devicemanagementrestriction.md)
- [screenTimeRestriction](pushtotalk/ptchannelerror-swift.struct/screentimerestriction.md)
- [transmissionNotAllowed](pushtotalk/ptchannelerror-swift.struct/transmissionnotallowed.md)
