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

Commit

Permalink
Modified TPlatformFirebaseMessaging.HandleMessageReceived to send the…
Browse files Browse the repository at this point in the history
… notification whether or not the app is in the foreground
  • Loading branch information
DelphiWorlds committed Dec 29, 2018
1 parent 5042aac commit 34b4e62
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Features/Firebase/DW.Firebase.Messaging.Android.pas
Original file line number Diff line number Diff line change
Expand Up @@ -136,14 +136,12 @@ procedure TPlatformFirebaseMessaging.HandleMessageReceived(const data: JIntent);
LValue: string;
begin
TOSLog.d('+TPlatformFirebaseMessaging.HandleMessageReceived');
if not IsForeground then
begin
TDo.Run(
procedure
begin
TJDWNotificationPublisher.JavaClass.sendNotification(TAndroidHelper.Context, data, True);
end
);
TDo.Run(
procedure
begin
TJDWNotificationPublisher.JavaClass.sendNotification(TAndroidHelper.Context, data, True);
end
);
end;
LPayload := TStringList.Create;
try
Expand Down

0 comments on commit 34b4e62

Please sign in to comment.