🐛 Bug fixes on wrong push notification provider

This commit is contained in:
LittleSheep 2024-11-26 21:48:04 +08:00
parent 356d3d4d3e
commit 6a3cd0a60d

View File

@ -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');