Skip to content

Foreground notification not working with Angular 9 #2331

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
OmarioHassan opened this issue Feb 18, 2020 · 7 comments
Closed

Foreground notification not working with Angular 9 #2331

OmarioHassan opened this issue Feb 18, 2020 · 7 comments

Comments

@OmarioHassan
Copy link

Version info

Angular CLI: 9.0.2
Node: 10.16.0
OS: win32 x64

Angular: 9.0.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.900.2
@angular-devkit/build-angular 0.900.2
@angular-devkit/build-optimizer 0.900.2
@angular-devkit/build-webpack 0.900.2
@angular-devkit/core 9.0.2
@angular-devkit/schematics 9.0.2
@angular/cli 9.0.2
@angular/fire 5.4.2
@ngtools/webpack 9.0.2
@schematics/angular 9.0.2
@schematics/update 0.900.2
rxjs 6.5.4
typescript 3.7.5
webpack 4.41.2

How to reproduce these conditions

foreground notification was working well with angular 8
when i updated to Angular 9 b ckground notification only working

@yanlyan
Copy link

yanlyan commented Feb 19, 2020

I also have this problem with version 6.0.0-rc.1.
Using ng add @angular/fire@next to install the new version

@yanlyan
Copy link

yanlyan commented Feb 24, 2020

getting this works by downgrade the firebase version to 7.5.0

@OmarioHassan
Copy link
Author

it's worked with me with
importScripts('https://www.gstatic.com/firebasejs/7.6.0/firebase-app.js'); importScripts('https://www.gstatic.com/firebasejs/7.6.0/firebase-messaging.js');
in firebase-messaging-sw.js
and make sure in package.json "firebase": "^7.6.0",

@JeongJun-Lee
Copy link

JeongJun-Lee commented May 2, 2020

I test it with the current recent firebase version 7.14.2 and angularfire 6 public version. There is a error like below.
image

@JeongJun-Lee
Copy link

@OmarioHasan I applied angularfire 6 public and firebase 7.6.0. But this issue is still. Could you give ma more idea? Thanks.

@OmarioHassan
Copy link
Author

@JeongJun-Lee
Copy link

@OmarioHasan I found another issue(#2299). This is still open. Thank you for reply.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants