From 45d731d53f839daf5eed5a1a67a2160768448d78 Mon Sep 17 00:00:00 2001 From: Dave Nottage Date: Mon, 7 Sep 2020 19:40:25 +0930 Subject: [PATCH] Modify for Delphi 10.4 --- Features/Notifications/DW.PushNotification.pas | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Features/Notifications/DW.PushNotification.pas b/Features/Notifications/DW.PushNotification.pas index 14dfc2c..f65cbff 100644 --- a/Features/Notifications/DW.PushNotification.pas +++ b/Features/Notifications/DW.PushNotification.pas @@ -165,7 +165,11 @@ procedure TPushNotifications.CheckStartupNotifications; function TPushNotifications.GetPushService: TPushService; begin + {$IF CompilerVersion < 34} + Result := TPushServiceManager.Instance.GetServiceByName(TPushService.TServiceNames.FCM); + {$ELSE} Result := TPushServiceManager.Instance.GetServiceByName(TPushService.TServiceNames.GCM); + {$ENDIF} end; procedure TPushNotifications.PresentLocalNotification(const AJSON: TJSONObject);