Unhandled Promise rejection: this._next is not a function : Zone in @angular/fire/messaging

前端 未结 5 1797
耶瑟儿~
耶瑟儿~ 2021-01-06 06:13

When I am receiving firebase push notifications in the foreground, by using @angular/fire/messaging. The method is:

  this.angularFireMessaging.         


        
5条回答
  •  旧时难觅i
    2021-01-06 06:52

    The problem is indeed related to the version of Firebase! Finally, I found the solution is detailed here.

    You must have firebase library version greater than 7.16 inside your package.json and it should match the version in firebase-messaging-sw.js

提交回复
热议问题