New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase (FCM) HTTP v1 API 지원 #2323
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
2024년 6월 20일에 서비스가 종료되는 Legacy HTTP API를 대신하여, 대체재인 HTTP v1 API를 사용하여 푸시알림을 전송하는 기능을 추가합니다.
HTTP v1 API는 기존의 API key가 아닌 Google OAuth2를 사용하여 인증해야 합니다.
Firebase 콘솔에서 "서비스 계정" 탭으로 이동하여, "새 비공개 키" (New private key) 버튼을 누르면 JSON 파일이 다운로드되는데, 이 파일 내용을 관리자 화면의 FCM 설정 화면에 입력하면 됩니다.
그 밖의 변경사항
HTTP::multiple()
로 처리하도록 했으나, 만약 토큰이 500개라면 여전히 50회 반복해야 하므로 시간이 많이 걸릴 수 있습니다. 이 부분은 백그라운드 작업으로 구현하는 것이 더 효율적일 것입니다.Rhymix\Framework\Helpers\CacheItemPoolHelper
클래스를 추가하였습니다.Psr\Cache\CacheItemPoolInterface
가 필요한 곳이라면 어디든지 사용할 수 있습니다.Rhymix\Framework\Cache
의 설정을 따르지만, 몇 가지 차이가 있습니다.앞으로의 계획