🐛 Bug fixes on wrong push notification provider
This commit is contained in:
parent
356d3d4d3e
commit
6a3cd0a60d
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user