Konuyu Oyla:
  • Derecelendirme: 0/5 - 0 oy
  • 1
  • 2
  • 3
  • 4
  • 5
Firebase den bildirim gelmiyor.
#1
Merhabalar, bir süredir Firebase den bildirim gelmiyor.
Sanırım bazı değişiklikler olmuş. 
aşağıdaki şekilde gönderim yapıyordum.



const
SunucuKey = 'AAAAu3fhQ3U:APA9......';
var
 Form1: TForm1;

implementation

{$R *.dfm}

procedure TForm1.Bildirim_Gonder(Baslik, Mesaj, Token : String);
begin

  try
    if Token<>'' then
    begin
     with RESTClient1 do
          begin
          Accept:='application/json, text/plain; q=0.9, text/html;q=0.8,';
          AcceptCharset:='utf-8, *;q=0.8';
          BaseURL:='https://fcm.googleapis.com/fcm/send';
          ContentType:='application/json';
          end;

     RESTResponse1.ContentType:='application/json';

     with  RESTRequest1 do
           begin
           Params.Clear;
           Client:=RESTClient1;
           Method:=TRESTRequestMethod.rmPOST;

           Params.Add;
           Params[0].ContentTypeStr:='';
           Params[0].Kind:=TRESTRequestParameterKind.pkHTTPHEADER;
           Params[0].Name:='Authorization';
           Params[0].Options:=[TRESTRequestParameterOption.poDoNotEncode];
           Params[0].Value:='key='+SunucuKey;
           Params.Add;
           Params[1].ContentTypeStr:='application/json';
           Params[1].Kind:=TRESTRequestParameterKind.pkREQUESTBODY;
           Params[1].Name:='bodyA0D6608800FE4190BC786B8156E2C75F';
           Params[1].Value:='{'+
                               '"to":"'+Token+'",'+
                               '"notification": {'+
                                                '"title": "'+Baslik+'",'+
                                                 '"message": "'+Mesaj+'"'+
                                                '}'+
                             '}';
           Execute;
           end;


      end;


  finally

  end;

end;

procedure TForm1.Button1Click(Sender: TObject);
begin
Bildirim_Gonder(edt_Baslik.Text,edt_mesaj.text,edt_token.Text);
end;

end.



Şimdi bu kod çalışmıyor.
Firebasın kendi consolundan mesaj gönderilce geliyor.

Ne yapmam gerekir?
Cevapla
#2
Merhaba IOS FCM göndermek? ilgili konuyu incelemenizi öneririm.
Muharrem ARSLAN
WWW
Cevapla


Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
  iOS Bildirim hakkında barissagir 19 3.134 03-02-2025, Saat: 16:27
Son Yorum: barissagir
  FMX te Firebase örneği [Çözüldü] CesuR 9 3.050 25-06-2023, Saat: 10:21
Son Yorum: walidAlgeria
  Firebase Authentication Kullanıcı Çoktan Oturum Açmışsa YILDIRIMBEY 5 2.877 18-04-2023, Saat: 11:37
Son Yorum: RAD Coder
  Firebase Notification içeriğin boş gelmesi arsl01 2 1.438 19-07-2022, Saat: 19:29
Son Yorum: arsl01
  Firebase Notification arsl01 2 1.471 06-06-2022, Saat: 17:26
Son Yorum: arsl01



Konuyu Okuyanlar: 1 Ziyaretçi