搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

Learn More

How to send notification via web push in php using GCM?

  • 無回覆
  • 2 有這個問題
  • 6 次檢視
more options

Hey There,

I want to send push notifications to my web site mozilla firefox browser. I am doing the same on chrome and it is working fine.

I have generated the GCM Id fro the browser.I am unable to send the notification to that particular user who is accessing site through firefox. Example Endpoint -

https://updates.push.services.mozilla.com/push/v1/gAAAAABXPZHJ9zdWL0YI3wByjlRwL7gmJE-myoVAdxNr3ezr6XPmor2AtgF4pzG4Sn0SiqtmkqA61orwcf38CfStVa0ooaykSFc7wcREqBzzMZGy8WT4hVBClBWemVdsP9POYPPNPEdf

Above is what I get when I ask service worker to register a user for Push Notification.

I want PHP code to send the notifications via https://updates.push.services.mozilla.com/.

Please help me out.

Thanks in Advance

Hey There, I want to send push notifications to my web site mozilla firefox browser. I am doing the same on chrome and it is working fine. I have generated the GCM Id fro the browser.I am unable to send the notification to that particular user who is accessing site through firefox. Example Endpoint - https://updates.push.services.mozilla.com/push/v1/gAAAAABXPZHJ9zdWL0YI3wByjlRwL7gmJE-myoVAdxNr3ezr6XPmor2AtgF4pzG4Sn0SiqtmkqA61orwcf38CfStVa0ooaykSFc7wcREqBzzMZGy8WT4hVBClBWemVdsP9POYPPNPEdf Above is what I get when I ask service worker to register a user for Push Notification. I want PHP code to send the notifications via https://updates.push.services.mozilla.com/. Please help me out. Thanks in Advance