일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
- window
- SwiftUI
- IOS
- JPA
- view
- github
- Notification
- Apple
- MacOS
- error
- darkmode
- rxswift
- mac
- Xcode
- iOS16
- geofencing
- UIButton
- 한글
- FLUTTER
- Firebase
- Archive
- appstore
- 이미지
- 웹뷰
- Realm
- Swift
- 개발자
- Session
- Git
- Code
- Today
- Total
목록Background (2)
EEYatHo 앱 깎는 이야기

HapticEngine 으로 진동을 구현했었다. 구현 포스팅 그런데 백그라운드로 갔다가 포그라운드로 돌아온 후, 진동을 켜면 com.apple.CoreHaptics Code=-4805 에러가 발생했다. CHHapticError 정의 를 보니, 엔진이 켜져있지 않다고 한다. Solution HapticEngine 은 앱이 백그라운드 상태로 가면 꺼진다. 따라서 포그라운드 진입시, HapticEngine 을 다시 start 시켜 해결했다. /// in AppDelegate override func applicationWillEnterForeground(_ application: UIApplication) { do { try VibrationManager.shared?.hapticEngine.start() }..
[ NotificationCenter로 백그라운드 감지 ] if #available(iOS 13.0, *) { NotificationCenter.default.addObserver(self, selector: #selector(taskFunc), name: UIScene.willDeactivateNotification, object: nil) } else { NotificationCenter.default.addObserver(self, selector: #selector(taskFunc), name: UIApplication.willResignActiveNotification, object: nil) } [ NotificationCenter로 포그라운드 감지 ] if #available(iOS 13.0..