简体   繁体   English

从 Push Services 推送 API 个端点,并提供完整的概述

[英]Push API endpoints from Push Services with complete overview

On Mozilla's PushSubscription.endpoint page, they have listed all browser compatibilities.在 Mozilla 的PushSubscription.endpoint页面上,他们列出了所有浏览器的兼容性。

However, they do not state which Push Services are being used by each one of them.但是,他们不知道 state 他们每个人正在使用哪些推送服务。 I figured, I might as well download each browser and test them all out by subscribing through PushManager.subscribe() .我想,我还不如下载每个浏览器并通过PushManager.subscribe()订阅来测试它们。

Now, I'm just wondering which one is needed for Safari v16 and higher?现在,我只是想知道Safari v16及更高版本需要哪一个?

浏览器兼容性

You think also configure these endpoints as CORS endpoints which are allowed to send notifications to one of your App Services for example, which can be convenient.您还可以将这些端点配置为 CORS 端点,例如,允许它们向您的应用服务之一发送通知,这可能很方便。

Complete list of Push Services are down below:推送服务的完整列表如下:

Please let me know, in case you know which Push Service is being used for Safari v16 or higher.如果您知道 Safari v16 或更高版本正在使用哪个推送服务,请告诉我。 Thank you.谢谢你。

UPDATE: January 16, 2023 9:54 PM更新:2023 年 1 月 16 日晚上 9:54

According to the following GitHub repository List of all known push services , the following list can be used:根据以下 GitHub repository List of all known push services ,可以使用如下列表:

  • android.googleapis.com android.googleapis.com
  • fcm.googleapis.com fcm.googleapis.com
  • updates.push.services.mozilla.com updates.push.services.mozilla.com
  • updates-autopush.stage.mozaws.net更新-autopush.stage.mozaws.net
  • updates-autopush.dev.mozaws.net更新-autopush.dev.mozaws.net
  • *.notify.windows.com *.notify.windows.com
  • *.push.apple.com *.push.apple.com

Thanks to @collimarco .感谢@collimarco

You can see a list of all known push services here:您可以在此处查看所有已知推送服务的列表:

https://github.com/pushpad/known-push-services https://github.com/pushpad/known-push-services

The list of push service hosts is complete and covers all major browsers (Chrome, Firefox, Opera, Edge, Safari, etc.).推送服务主机列表完整,涵盖所有主流浏览器(Chrome、Firefox、Opera、Edge、Safari等)。 We use that list for limiting outgoing connections to trusted hosts.我们使用该列表来限制与受信任主机的传出连接。

For example for Safari the host is *.push.apple.com .例如 Safari 主机是*.push.apple.com

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM