Notice
Recent Posts
Recent Comments
Link
목록sleep (1)
NewGen

앱 이 동작을 하면서 데이터 송수신, 트랜잭션 등의 작업이 이루어지는 중에 전화오거나, 그냥 사용자가 슬립버튼 눌러버린경우 데이터 깨지거나 앱 죽는 경우 방지를 위해서.... 고려해봄 기본적 처리방법. 1. capabilities 설정에 백그라운드모드 넣고 저래 두개 켜줌. 2.info.plist에 이런거 추가 해주고.... 3. 처리를 원하는 곳에 func beginBackgroundUpdateTask() -> UIBackgroundTaskIdentifier { return UIApplication.shared.beginBackgroundTask(expirationHandler: ({})) } func endBackgroundUpdateTask(taskID: UIBackgroundTaskIdentifi..
IOS
2020. 10. 22. 20:34