Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Firebase Push Notifications Support #45

Open
wants to merge 23 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 14 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c7ef398
feat: added firebase back
al-rosenthal Jan 29, 2025
50d4b6b
feat: :construction: initialize firebase app
al-rosenthal Jan 29, 2025
d323b30
updated gitignore
al-rosenthal Jan 30, 2025
6c8d1b4
feat: :construction: added psuh message code back to repository
al-rosenthal Jan 30, 2025
97d4040
fix: updated envs
al-rosenthal Jan 31, 2025
afec0fe
feat: :construction: got push notifications working in a very basic s…
al-rosenthal Feb 6, 2025
ebdbff5
feat: push notification clean up
al-rosenthal Feb 11, 2025
218633b
feat: added patch to provide support push notifications
al-rosenthal Feb 11, 2025
efd8f2a
feat: updated logger error
al-rosenthal Feb 11, 2025
57e7774
Merge branch 'main' into feat/PushNotifications
al-rosenthal Feb 11, 2025
72cac3a
refactor: code clean up
al-rosenthal Feb 11, 2025
4645f02
chore: clean up
al-rosenthal Feb 11, 2025
e1d1685
chore: more clean up
al-rosenthal Feb 11, 2025
d7d2c04
chore: cleaning up style checks
al-rosenthal Feb 11, 2025
39236e9
Update src/push-notifications/fcm/services/PushNotificationsFcmServic…
al-rosenthal Feb 13, 2025
aff576a
chore: removed npm lock
al-rosenthal Feb 13, 2025
6a9ce79
feat: moved fcm push notification logic into storage message queue
al-rosenthal Feb 14, 2025
9a75996
chore: removed patch changes
al-rosenthal Feb 14, 2025
4820fef
fix: fixed patch
al-rosenthal Feb 14, 2025
4f8782b
fix: re ran pnpm install --frozen-lock
al-rosenthal Feb 19, 2025
fe34a17
chore: cleaned up paramter
al-rosenthal Feb 19, 2025
f6c7dd9
chore: added better check for firebase push notifications
al-rosenthal Feb 19, 2025
aade031
chore: fixed code styles
al-rosenthal Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ networks:
volumes:
postgres-data:


services:
postgres:
image: postgres:13
Expand All @@ -16,6 +15,8 @@ services:
- postgres-data:/var/lib/postgresql/data
networks:
- local_credo_mediator_network
ports:
- "5432:5432"

mediator:
image: mcr.microsoft.com/devcontainers/javascript-node:1-20-bullseye
Expand Down
14 changes: 12 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,15 +1,25 @@
# Agent
AGENT_ENDPOINTS='https://example.ca,wss://example.ca'
USE_PUSH_NOTIFICATIONS='false'
INVITATION_URL='https://example.ca'
NOTIFICATION_WEBHOOK_URL=


# Push notification
USE_PUSH_NOTIFICATIONS='false'
PUSH_NOTIFICATION_TITLE='this appears in the title of the notification'
PUSH_NOTIFICATION_BODY='this appears in the body if the notification'

# Database
POSTGRES_USER=postgres
POSTGRES_PASSWORD=85a52c9283b0
POSTGRES_ADMIN_USER=postgres
POSTGRES_ADMIN_PASSWORD=85a52c9283b0

# Firebase
FIREBASE_PROJECT_ID=some-project-X123
[email protected]
FIREBASE_PRIVATE_KEY="-----BEGIN PRIVATE KEY-----...-----END PRIVATE KEY-----"

# Wallet
WALLET_KEY=a67d8724cb01c7c0b5d92f01fb052885
WALLET_NAME=mediator-dev # Will be database name.

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ node_modules
.env.local
.pnpm-store/
*.orig
~/
2 changes: 1 addition & 1 deletion dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ if (!process.env.NGROK_AUTH_TOKEN) {
* Connect to ngrok and then set the port and url on the environment before importing
* the index file.
*/
void connect({
connect({
port,
authtoken: process.env.NGROK_AUTH_TOKEN,
}).then((app) => {
Expand Down
Loading
Loading