Skip to content

Progressive Web Application served over HTTPS with service worker handling firebase push notifications sent by the Admin panel of the application

Notifications You must be signed in to change notification settings

xavijs/ssl-web-push-encryption

Repository files navigation

Progressive webapp with push notifications

Setup firebase account

  • Create a project in FireBase (you can import a project from Google)
  • Frontend: Put your gcm_sender_id in manifest.json (is your project ID from FireBase)
  • Backend: Specify the PRIVATE_KEY in ApplicationConfiguration (This is the Server Key of Fire Base cloudmessaging)

Run

  • To run in local:
./gradlew bootRun
  • To run with Docker:
./gradlew build && docker-compose up --build

Endpoints

  • SSL certificate is self-signed ! To make service worker to run correctly with self-singled certificates, execute Chrome:
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --user-data-dir=/tmp/foo --ignore-certificate-errors --unsafely-treat-insecure-origin-as-secure=https://localhost:443

Known issues

  • Server is accepting all Cross Domain requests

  • Javascript client is sending the subscription to hardcoded localhost

  • Using a self-signed SSL certificate

About

Progressive Web Application served over HTTPS with service worker handling firebase push notifications sent by the Admin panel of the application

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published