From 6a3cd0a60d7b809d6e211cb310b1841c76a00dfb Mon Sep 17 00:00:00 2001
From: LittleSheep <littlesheep.code@hotmail.com>
Date: Tue, 26 Nov 2024 21:48:04 +0800
Subject: [PATCH] :bug: Bug fixes on wrong push notification provider

---
 lib/providers/notification.dart | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/providers/notification.dart b/lib/providers/notification.dart
index f4b151c..ccd5a7e 100644
--- a/lib/providers/notification.dart
+++ b/lib/providers/notification.dart
@@ -46,10 +46,10 @@ class NotificationProvider extends ChangeNotifier {
     }
 
     if (Platform.isIOS || Platform.isMacOS) {
-      provider = 'apple';
+      provider = 'apns';
       token = await FirebaseMessaging.instance.getAPNSToken();
     } else {
-      provider = 'firebase';
+      provider = 'fcm';
       token = await FirebaseMessaging.instance.getToken();
     }
     log('Device Push Token is $token');