I am trying to implement push notification using Polymer. I followed this link and was able to get a service worker registration. I received the following comments on the Javascript console.
Service Worker is ready :^) ServiceWorkerRegistration
But I also got this error.
Uncaught (in promise) DOMException: Registration failed - manifest empty or missing
Note:
<link rel="manifest" href="manifest.json">
already in my index.html. Since I use the Google App Engine, in my app.yaml app, I also added the following
url: /manifest.json static_files: templates/manifest.json upload: templates/manifest.json
And if I try localhost:8080/manifest.json
, my json manifest is displayed in the browser. I was not able to get it to work. Kindly provide some help suggestions to check if manifest.json is really available in my index.html
source share