---
title: environment
framework: appstoreservernotifications
role: symbol
role_heading: Type
path: appstoreservernotifications/environment
---

# environment

The server environment, either sandbox or production.

## Declaration

```data
string environment
```

## Possible Values

Sandbox: Indicates that the notification applies to testing in the sandbox environment. Production: Indicates that the notification applies to the production environment.

## Discussion

Discussion You receive notifications in the sandbox environment when you opt in to receive notifications in the sandbox environment and test your app in the sandbox environment. TestFlight also uses the sandbox environment to send notifications. To opt in to receive notifications, see Enter a URL for App Store Server Notifications. For more information about testing, see Testing at all stages of development with Xcode and the sandbox, and Beta Testing Made Simple with TestFlight.

## See Also

### App metadata and environment

- [appAppleId](appstoreservernotifications/appappleid.md)
- [bundleId](appstoreservernotifications/bundleid.md)
- [bundleVersion](appstoreservernotifications/bundleversion.md)
- [status](appstoreservernotifications/status.md)
