- 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)
- To run in local:
./gradlew bootRun
- To run with Docker:
./gradlew build && docker-compose up --build
- 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
- Website to accept notifications: https://localhost
- Admin panel: https://localhost/admin
-
Server is accepting all Cross Domain requests
-
Javascript client is sending the subscription to hardcoded localhost
-
Using a self-signed SSL certificate