Skip to content
This repository has been archived by the owner on Jan 5, 2023. It is now read-only.

Commit

Permalink
Modify for Delphi 10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DelphiWorlds committed Sep 7, 2020
1 parent acd0578 commit 45d731d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Features/Notifications/DW.PushNotification.pas
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 45d731d

Please sign in to comment.