TF-1369 Fix [FCM] Unsupported operation Platform

This commit is contained in:
dab246
2023-01-03 15:13:30 +07:00
committed by Dat H. Pham
parent 9301c0350b
commit eec4418e60
4 changed files with 21 additions and 7 deletions
@@ -38,6 +38,7 @@ class LocalNotificationManager {
} catch (e) {
logError('LocalNotificationManager::setUp(): ERROR: ${e.toString()}');
}
return Future.value();
}
bool get isOpenAppByNotification => _notificationAppLaunchDetails?.didNotificationLaunchApp ?? false;
@@ -141,6 +142,10 @@ class LocalNotificationManager {
}
void groupPushNotification() async {
if (Platform.isIOS) {
return;
}
final activeNotifications = await _localNotificationsPlugin
.resolvePlatformSpecificImplementation<AndroidFlutterLocalNotificationsPlugin>()
?.getActiveNotifications();