Closed Th-Barth closed 11 months ago
This issue does not seem to follow the issue template. Make sure you provide all the required information.
Hello, this issue can be closed or even deleted. I had to recreate the firebase-messaging-sw.js file. Seems that the file was somehow corrupted!
Hello, I would like to get webpush notifications working in a test app (Ionic/Angular as a PWA). The documentation and videos I've watched on this so far are mostly outdated. So I am now trying to reproduce the sample provided here. However, I get an error message:
I'll list the steps I've taken so far. Maybe someone can see immediately what is missing or why it doesn't work.
configure project in the firebase console to get firebaseConfig, so that ng add @angular/fire can fetch all the informations
app.module.ts (imports added by ng add pwa/fire automatically)
angular.json (projects app ... assets)
manifest.webmanifest added line
firebase-messaging-sw.js from sample but changed to 9.23.0
environment.ts/environment.prod.ts
home.page.ts (from sample for testing added in home)
home.page.html (from sample)
The output is:
Request Permission worked and could be granted. Does anyone perhaps have an idea why the evaluation is not working?
Additional Infos package.json
ionic info