quickstart-js icon indicating copy to clipboard operation
quickstart-js copied to clipboard

messaging quickstart does not work

Open thedmdim opened this issue 1 year ago • 3 comments

Step 1: Describe your environment

  • Operating system: MacOS
  • Browser: Safari/Chrome
  • Firebase SDK version: 12.5.4

Step 2: Describe the problem:

I have filled config.ts then I did npm run build and firebase emulators:start. The page loaded and I click Request Permission and get next output: image

Steps to reproduce:

  1. git clone https://github.com/firebase/quickstart-js
  2. cd messaging/
  3. fill config.ts
  4. npm run build
  5. firebase emulators:start

thedmdim avatar Feb 13 '24 09:02 thedmdim

Seeing this as well, did you find a resolution @thedmdim?

jackfoust avatar Mar 10 '24 18:03 jackfoust

@jackfoust hi, i managed to solve this then, but don't remember how. My diff is image

thedmdim avatar Mar 10 '24 18:03 thedmdim

@thedmdim ah, nice! That makes sense though to switch that .js up a bit if you're not using firebase hosting. Thanks!

jackfoust avatar Mar 10 '24 20:03 jackfoust