---
title: WINetworkSharingError.appNotInForeground
framework: wifiinfrastructure
role: symbol
role_heading: Case
path: wifiinfrastructure/winetworksharingerror/appnotinforeground
---

# WINetworkSharingError.appNotInForeground

Indicates your app can’t perform the requested operation because it isn’t running in the foreground.

## Declaration

```swift
case appNotInForeground
```

## See Also

### Checking for app issues

- [WINetworkSharingError.appNotPermitted](wifiinfrastructure/winetworksharingerror/appnotpermitted.md)
