Uncaught (in promise) DOMException: Registration failed - manifest empty or missing

不羁岁月 提交于 2019-12-07 04:51:03

问题


Im trying to implement push notification using Polymer. I followed this link and was able to get the service worker to be registered. I got the following comments of the Javascript console.

Service Worker is ready :^) ServiceWorkerRegistration

But I also received this error.

Uncaught (in promise) DOMException: Registration failed - manifest empty or missing

Note:

<link rel="manifest" href="manifest.json">

is already in my index.html. Since Im using Google App Engine, in my app.yaml I have add the following as well

url: /manifest.json
  static_files: templates/manifest.json
  upload: templates/manifest.json

And if I try localhost:8080/manifest.json, my manifest json is displayed on the browser. Im unable to get it working. Please provide some help, suggestions to check if manifest.json is actually accessible in my index.html

来源:https://stackoverflow.com/questions/35966529/uncaught-in-promise-domexception-registration-failed-manifest-empty-or-miss

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!