From 6ccf820438b5bf0feacb1f016e0a0fa42d90ef4d Mon Sep 17 00:00:00 2001 From: Marc Rejohn Castillano Date: Wed, 25 Feb 2026 23:37:08 +0800 Subject: [PATCH] FCM push Notifications --- android/app/src/main/AndroidManifest.xml | 3 + lib/main.dart | 52 +++++----- lib/providers/auth_provider.dart | 20 ++++ lib/providers/notifications_provider.dart | 16 +++- lib/utils/device_id.dart | 23 +++++ pubspec.lock | 4 +- pubspec.yaml | 2 + supabase/functions/send_fcm/index.ts | 96 +++++++++++++++---- ...0225120000_add_device_id_to_fcm_tokens.sql | 19 ++++ 9 files changed, 188 insertions(+), 47 deletions(-) create mode 100644 lib/utils/device_id.dart create mode 100644 supabase/migrations/20260225120000_add_device_id_to_fcm_tokens.sql diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index f3895c1c..f9893512 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -45,6 +45,9 @@ +