iOS
iOS Attributes
This group describes iOS-specific attributes.
Attributes:
| Key | Stability | Value Type | Description | Example Values | 
|---|---|---|---|---|
| ios.app.state | string | This attribute represents the state of the application. [1] | active;inactive;background | 
[1] ios.app.state: The iOS lifecycle states are defined in the UIApplicationDelegate documentation, and from which the OS terminology column values are derived.
ios.app.state has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
| Value | Description | Stability | 
|---|---|---|
| active | The app has become active. Associated with UIKit notificationapplicationDidBecomeActive. | |
| background | The app is now in the background. This value is associated with UIKit notification applicationDidEnterBackground. | |
| foreground | The app is now in the foreground. This value is associated with UIKit notification applicationWillEnterForeground. | |
| inactive | The app is now inactive. Associated with UIKit notificationapplicationWillResignActive. | |
| terminate | The app is about to terminate. Associated with UIKit notification applicationWillTerminate. | 
Deprecated iOS Attributes
The iOS platform on which the iOS application is running.
Attributes:
| Key | Stability | Value Type | Description | Example Values | 
|---|---|---|---|---|
| ios.state | Replaced by ios.app.state. | string | Deprecated. Use the ios.app.stateattribute. [2] | active;inactive;background | 
[2] ios.state: The iOS lifecycle states are defined in the UIApplicationDelegate documentation, and from which the OS terminology column values are derived.
ios.state has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.
| Value | Description | Stability | 
|---|---|---|
| active | The app has become active. Associated with UIKit notificationapplicationDidBecomeActive. | |
| background | The app is now in the background. This value is associated with UIKit notification applicationDidEnterBackground. | |
| foreground | The app is now in the foreground. This value is associated with UIKit notification applicationWillEnterForeground. | |
| inactive | The app is now inactive. Associated with UIKit notificationapplicationWillResignActive. | |
| terminate | The app is about to terminate. Associated with UIKit notification applicationWillTerminate. | 
Feedback
Was this page helpful?
Thank you. Your feedback is appreciated!
Please let us know how we can improve this page. Your feedback is appreciated!