DEV Community

Discussion on: Angular 8 + Firebase Cloud Messaging Push Notifications

Collapse
 
tharindu960490240 profile image
Tharindu

zone.js:699 Unhandled Promise rejection: this._next is not a function ; Zone: ; Task: ServiceWorkerContainer.addEventListener:message ; Value: TypeError: this._next is not a function
at WindowController.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next as onMessageCallback
at WindowController. (index.esm.js:1067)
at step (tslib.es6.js:100)
at Object.next (tslib.es6.js:81)
at tslib.es6.js:74
at new ZoneAwarePromise (zone.js:915)
at __awaiter (tslib.es6.js:70)
at WindowController.push../node_modules/@firebase/messaging/dist/index.esm.js.WindowController.messageEventListener (index.esm.js:1056)
at ServiceWorkerContainer. (index.esm.js:890)
at ZoneDelegate.invokeTask (zone.js:431) TypeError: this._next is not a function
at WindowController.push../node_modules/rxjs/_esm5/internal/Subscriber.js.Subscriber.next as onMessageCallback
at WindowController. (localhost:4200/firebase-messaging....)
at step (localhost:4200/vendor.js:180014:23)
at Object.next (localhost:4200/vendor.js:179995:53)
at localhost:4200/vendor.js:179988:71
at new ZoneAwarePromise (localhost:4200/polyfills.js:4720:33)
at __awaiter (localhost:4200/vendor.js:179984:12)
at WindowController.push../node_modules/@firebase/messaging/dist/index.esm.js.WindowController.messageEventListener (localhost:4200/firebase-messaging....)
at ServiceWorkerContainer. (localhost:4200/firebase-messaging....)
at ZoneDelegate.invokeTask (localhost:4200/polyfills.js:4236:35)

forground error please help

"@angular/fire": "^5.4.2",
"firebase": "^7.14.2",