Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- Firebase
- SwiftUI
- Code
- Session
- appstore
- error
- geofencing
- Archive
- view
- JPA
- Git
- 이미지
- Swift
- Xcode
- IOS
- 웹뷰
- Realm
- mac
- Apple
- 한글
- Notification
- FLUTTER
- window
- rxswift
- darkmode
- iOS16
- MacOS
- 개발자
- UIButton
- github
Archives
- Today
- Total
목록requestAuthorization (1)
EEYatHo 앱 깎는 이야기
Swift ) requestAuthorization, registerForRemoteNotifications - EEYatHo iOS
요약 : 알람 설정 관련 코드들 특성을 분석해서 아래 코드 완성 // 최초 1번만 실행해도 괜찮음. // 계속 실행해도 괜찮지만, 팝업은 안뜨고 completion은 매번 실행됨. UNUserNotificationCenter.current().requestAuthorization(options: [.badge, .alert, .sound], completionHandler: { (granted, error) in print("requestAuthorization granted = \(granted)") if let e = error { print("error = \(e)") } }) // 매번 실행하기. 디바이스 토큰이 언제 바뀔지 모름. // 팝업이 뜨거나 하지 않음. 델리게이트로 APNS서버에 등록된..
iOS, Swift/Swift Theory
2022. 2. 15. 16:54