Skip to content

[Fix] TestFlight iOS 백그라운드 푸시 미수신 버그 수정#185

Merged
pooreumjung merged 1 commit into
developfrom
fix/#184-fcm-apns-production
Jun 4, 2026
Merged

[Fix] TestFlight iOS 백그라운드 푸시 미수신 버그 수정#185
pooreumjung merged 1 commit into
developfrom
fix/#184-fcm-apns-production

Conversation

@pooreumjung

Copy link
Copy Markdown
Member

🧾 요약

  • FCM에서 APNs 환경을 명시하지 않아 TestFlight(Production APNs)에서 iOS 백그라운드 푸시가 수신되지 않던 문제 수정

🔗 이슈

✨ 변경 내용

  • FcmServiceapns-environment 헤더 추가 (백그라운드/일반 알림 모두 적용)
  • 일반 알림(dataOnly=false) 경로에 ApnsConfig 누락 추가
  • application.yamlfcm.apns-environment 환경변수 분리 (prod 기본값: production, local: sandbox)

✅ 확인

  • 빌드 OK
  • 테스트 OK

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Jun 4, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 0eb060e7-3647-4914-99ae-e189096d48ee

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/#184-fcm-apns-production

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

본 PR은 iOS TestFlight 환경에서 백그라운드 푸시 알림이 수신되지 않던 문제를 해결하기 위한 변경 사항을 담고 있습니다. FCM 메시지 전송 시 APNs 환경 헤더가 누락되었던 점을 보완하고, 환경 변수를 통해 배포 환경에 맞는 설정을 적용할 수 있도록 개선하여 푸시 알림의 안정성을 확보했습니다.

Highlights

  • APNs 환경 설정 추가: FCM 메시지 전송 시 'apns-environment' 헤더를 명시적으로 설정하여 TestFlight 환경에서 백그라운드 푸시가 정상적으로 수신되도록 수정했습니다.
  • ApnsConfig 로직 개선: 일반 알림과 사일런트 푸시 모두에 대해 ApnsConfig를 적용하도록 로직을 통합하고 최적화했습니다.
  • 환경 변수 분리: application.yaml에 fcm.apns-environment 설정을 추가하여 운영 환경과 로컬 환경(sandbox)을 유연하게 관리할 수 있도록 했습니다.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@pooreumjung pooreumjung self-assigned this Jun 4, 2026
@pooreumjung pooreumjung added the bug Something isn't working label Jun 4, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

이번 PR은 FCM 발송 시 APNs 환경 설정을 동적으로 처리하기 위해 apns-environment 헤더를 추가하고 관련 설정을 application.yaml에 반영하는 변경사항을 담고 있습니다. 리뷰어는 APNs 및 FCM에서 개발 환경을 나타내는 올바른 헤더 값은 sandbox가 아닌 development이므로, 로컬 환경의 FCM_APNS_ENVIRONMENT 설정값을 development로 수정해야 함을 지적했습니다.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

Comment on lines +49 to +50
fcm:
apns-environment: ${FCM_APNS_ENVIRONMENT:production}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

APNs의 apns-environment 헤더 값으로 sandbox 대신 development를 사용해야 합니다. Apple APNs 및 FCM에서 인식하는 개발 환경의 올바른 헤더 값은 developmentproduction입니다. PR 본문에 local: sandbox로 설정하셨다고 언급되어 있는데, 이 경우 개발 환경에서 백그라운드 푸시가 정상적으로 수신되지 않을 수 있습니다. local 환경의 FCM_APNS_ENVIRONMENT 값을 development로 변경해 주세요.

@pooreumjung
pooreumjung merged commit bbd928f into develop Jun 4, 2026
3 checks passed
@howooyeon
howooyeon deleted the fix/#184-fcm-apns-production branch June 5, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] FCM iOS 푸시 알림 APNs 환경 미설정으로 TestFlight 백그라운드 알림 미수신

1 participant