Coder Social home page Coder Social logo

jfadev / jfa-pwa-toolkit Goto Github PK

View Code? Open in Web Editor NEW
267.0 9.0 35.0 3.7 MB

⚡️ PWA Features to Any Website (very Fast & Easy)

License: MIT License

JavaScript 100.00%
pwa manifest manifest-json offline service-worker precache push-notifications javascript javascript-library toolkit

jfa-pwa-toolkit's Introduction

jfa-pwa-toolkit's People

Contributors

dloranc avatar jfadev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jfa-pwa-toolkit's Issues

Error with push notifications: applicationServerKey is not valid

Hello,

I am trying to get push notifications running. The service worker seems to register fine, but when I try to subscribe, I get this error message in Chrome (version 89.0.4389.90):
pwa.js:182 PWA: Unable to subscribe to Push DOMException: Failed to execute 'subscribe' on 'PushManager': The provided applicationServerKey is not valid.

Here is my test setup: https://pwa-test.gruenewuerfel.de/

I noticed that in the config.js Line 36 it says 'YOURAPIPUBLICKEY' Do I need to replace that with something? What kind of key do I need?

Uncaught ReferenceError: PWA_CONFIG is not defined

Hi, I followed the tutorial. At first, I put the pwa folder inside some other folders, next to index.html. But it didn't work, so I moved the folder to the root.

Unfortunately, it still gives me the same error:

sw.js:19 Uncaught ReferenceError: PWA_CONFIG is not defined
    at sw.js:19
(anonymous) @ sw.js:19
pwa.js:32 PWA: Service Worker registration failed with TypeError: Failed to register a ServiceWorker: ServiceWorker script evaluation failed

Do you know why? It seems that all the files do not share the global namespace. The file get loaded (I tested it with a console.log in config.js), but other files cannot read it. I use it on an angularjs app.

Also, it seems that PWA_ROOT definition is missing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.