diff --git a/lib/utils/background_push.dart b/lib/utils/background_push.dart index 4f41479eee..1ab50d99ba 100644 --- a/lib/utils/background_push.dart +++ b/lib/utils/background_push.dart @@ -281,6 +281,11 @@ class BackgroundPush { if (PlatformInfos.isIOS) { // Request iOS permission before getting the token await fcmSharedIsolate?.requestPermission(); + } else if (Platform.isAndroid) { + await _flutterLocalNotificationsPlugin + .resolvePlatformSpecificImplementation< + AndroidFlutterLocalNotificationsPlugin>() + ?.requestPermission(); } _pushToken = await (Platform.isIOS ? apnChannel.invokeMethod("getToken")