Firebase Cloud Messaging
Send push notifications to Android, iOS, and web applications using Firebase Cloud Messaging (FCM) from Delphi.
Send push notifications to Android, iOS, and web applications using Firebase Cloud Messaging (FCM) from Delphi.
uses
sgcHTTP_API_Google_FCM;
var
FCM: TsgcHTTPGoogleFCM;
begin
FCM := TsgcHTTPGoogleFCM.Create(nil);
FCM.GoogleOptions.ProjectId := 'my-project';
FCM.GoogleOptions.ServiceAccountFile :=
'service-account.json';
// Send notification to device
FCM.Send(DeviceToken, 'Hello!', 'Message body');
end;
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.