Conversation
This file contains hidden or 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.
🔥 Related Issues
💙 작업 내용
✅ PR Point
firebase-messaging-sw.js파일의 이름과 파일의 위치가 조금이라도 틀리면 아예 먹지 않더라구요! 이거 주의하여야 할 것 같습니다.이런식으로 뜨게 되는데,
이 부분과 함께 firebase console에서
테스트 부분에 내용과 제목을 입력하고 token을 넣어주고 보내면 data가 잘 받아와집니다!
이렇게 push 알림 데이터를 받으면,
마지막으로 notification의 title과 body부분을 보여주면 될 것 같습니다....
아예 알람 메세지랑 아이콘까지 띄울 수 있게 좀더 리팩토링해보겠습니다!!!
결과 화면=> 근데 chrome에서만 해봐서(아이폰이슈) pwa 자체로 바꾸지도 않은 것 같아서,,, 자신감은 제로임

😡 Trouble Shooting
yarn add firebase를 해도 firebase를 인지하지 못하는 상황이 있었고,import @firebase/messaging을 해도 인지하지 못했습니다ㅠㅠ👀 스크린샷 / GIF / 링크
📚 Reference
PWA PUSH 구현에 대하여
PWA PUSH 예시코드
사실 코드는 제 레포지토리,,,에서 보시는 게 나을 것 같습니다! (복붙한다고 붙였는데 사람인지라 빼먹었을 것 같기도 하고 리팩토링도 그쪽에서 진행하려고 합니다)