Thursday, 26 September 2024
  6 Replies
  175 Visits
  Subscribe
Hi,

I used to be able to push Android apps using Google FCM. Google has now switched to V1 communication and my app no longer works. Google gave me a JS file. I need to rebuild my project but I couldn't find an example. Can you help me?

Old Code;

oHTTP2.Request.CustomHeaders.Clear;
oHTTP2.Request.CustomHeaders.Add('Content-Type: application/json');
oHTTP2.Request.CustomHeaders.Add('Authorization: key='+a_akey);
oHTTP2.Request.BearerAuthentication:=False;
res:=oHTTP2.Post(a_url,sReq);


Thank you..