iOS/설명
[iOS] User에 의해 종료된 경우 vs System에 의해 종료된 경우
Sky Titan
2022. 5. 25. 21:23
728x90
iOS : What is the difference between app killed by system and killed by user?
I have to execute some code of my app (down/upload data from my server) periodically (once a day) as I asked there. I read that it is not possible to execute any code from the app when it has been
stackoverflow.com
User에 의해 종료된 경우 vs System에 의해 종료된 경우
- 근본적으로 둘 다 Not Running 상태로 변하게 되며 동일한 상태이다.
- 다만 user가 수동으로 app을 종료시킨 경우엔, state restoration framework가 restoration crash의 무한루프에 빠지지 않도록 의도적으로 state정보를 폐기시켜버린다.
- 때문에 이런 관점에서 보았을 땐, app을 relaunch할 때 lifecycle은 약간 다를 수 있다.
- 결론은 사실상 차이가 없다라고 보는게 맞을 듯 하다.
728x90