firebase/quickstart-js

Show two messages

asleeguilez opened this issue · 1 comments

Step 1: Describe your environment

  • Operating system: _____Window
  • Browser: _____Chrome
  • Firebase SDK version: _____9.14.0

Step 2: Describe the problem:

Steps to reproduce:

  1. _____I don't know why, but when it's in the background it shows two messages


Observed Results:

image

  • What happened? This could be a description, logs, etc.

Expected Results:

  • What did you expect to happen?

Relevant Code:

// TODO(you): code here to reproduce the problem
I have made no changes, only the example code
127 commented

it's not a bug but a feature in this broken part of the Universe
// Keep in mind that FCM will still show notification messages automatically
// and you should use data messages for custom notifications.
at https://github.com/firebase/quickstart-js/blob/master/messaging/firebase-messaging-sw.js