Skip to content

Latest commit

 

History

History
42 lines (25 loc) · 1.07 KB

README.md

File metadata and controls

42 lines (25 loc) · 1.07 KB

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