Skip to content

Commit

Permalink
Recommend a PWA implementation path
Browse files Browse the repository at this point in the history
  • Loading branch information
paulincai authored Jun 2, 2020
1 parent 8795e47 commit 38ccc6f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions DEVELOPMENT_PATH_WEB.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,8 @@ meteor add activitree:push

Copy the worker file here: https://github.com/activitree/meteor-push/blob/master/example/app/public/firebase-messaging-sw.js to your public folder. This needs to be available at https://www.your_address.com/firebase-messaging-sw.js. This worker is responsible for handling backgroud messages. Your 'action' key in the notification object contains the URL that will be open when the notification on screen is being clicked on.

** If you are looking for a more complex implementation of a Meteor PWA with Notifications, Offline Caching and Offline experience, please visit this repo: https://github.com/activitree/Meteor-PWA-Explained


***Note:***
With Firebase, some of the public credentials are exposed and visible on the client. Read this for an understanding of how to restrict public API keys in Firebase: https://medium.com/@impaachu/how-to-secure-your-firebase-project-even-when-your-api-key-is-publicly-available-a462a2a58843

0 comments on commit 38ccc6f

Please sign in to comment.