-
Notifications
You must be signed in to change notification settings - Fork 0
Notification Service Extension 내부 클래스가 디버깅되지 않는 이슈 #1
Copy link
Copy link
Open
Labels
Description
Describe the bug
-
푸시 알림 수신을 위한 Notification Service Extension 추가
-
빌드 시, 생성된 NotificationService 클래스 내부가 디버깅되지 않는 문제
-
테스트 과정에서 이미지 푸시 알림 확인 불가
-
하지만 설치된 앱에서 이미지 푸시 알림 정상적으로 수신
-
Cause
-
Xcode 프로젝트 설정
build phases탭에서copy only when installing옵션이 체크되어있는 상태가 원인- 위치: Xcode에서 프로젝트 → 상단 메뉴에서 TARGETS -> Build Phases 탭으로 이동 -> Embed Foundation Extensions 섹션
-
Copy only when installing 옵션
-
옵션이 체크되어있는 경우, 확장(Extension)이 실제로 앱이 설치되는 경우에만 포함 → 앱 배포 크기를 줄이기 위해서
-
이 옵션의 체크를 해제하면, 디버깅과 빌드 과정에서 확장이 항상 포함
-
Solution
-
copy only when installing 옵션의 체크를 해제한 뒤,
didReceive메서드 내부에 수신되는 푸시 알림 확인 -
cf. 푸시 알림 테스트를 위해 빌드할 때, NotificationServiceExtension 스킴으로 전환 후 디버깅 테스트 실행
Reactions are currently unavailable
