There are three questions for distinguishing app states.
- Is the app possible to execute codes?
- Is the app visible?
- Is the app possible to get events?
When app on iOS does enters a state?
- Active: User launches an app.
- Inactive: Getting a system event such as SMS, notification, phone call, or alarm.
- Background: Switching another app
- Suspend state: Background state has about 10 seconds before it enters the suspended state.
- Not Running: When iOS decides memory is getting low, it terminates suspended apps.
State | Code Execution | Visibility | Receiving Events |
---|---|---|---|
Not Running | No | No | No |
Active | Yes | Yes | Yes |
Inactive | Yes | Mostly | No |
Background | Yes | No | No |
Suspended | No | No | No |
0 κ°μ λκΈ:
Post a Comment