Push Device 등록하기 - kirseia/study GitHub Wiki
순서
- 권한 얻기 (사용자에게 request)
- apns 에 디바이스 등록하기 (badge / sound / banner 어떤걸 쓸지 세팅하고)
- 내가 쓰는 서버에 등록한 뒤에 기기 등록하기
- 서버 -> apns -> 내 기기로 푸시 성공
Ref.
-
https://www.raywenderlich.com/8164-push-notifications-tutorial-getting-started#toc-anchor-006
- 이것만 보면 됨
-
https://www.hackingwithswift.com/example-code/uikit/why-can-i-not-register-for-push-notifications
-
https://developer.apple.com/documentation/usernotifications/registering_your_app_with_apns
-
https://developer.apple.com/documentation/usernotifications/asking_permission_to_use_notifications
-
https://developer.apple.com/documentation/usernotifications/setting_up_a_remote_notification_server