zhwguest
V2EX  ›  互联网

关于谷歌的 FCM 推送有个小问题

  •  
  •   zhwguest · Jun 15, 2023 · 1381 views
    This topic created in 1062 days ago, the information mentioned may be changed or developed.

    我看官方的说明:

    向任意设备发送消息
    Firebase Cloud Messaging (FCM) 可在您的服务器与用户设备之间建立可靠而且省电的连接,让您能够在 iOS 、Android 和 Web 应用中免费发送和接收消息及通知。
    

    对于 iOS 和 Android 比较熟悉,知道怎么回事。但是对于 web ,一直就不清楚它是怎么搞的啊。自己建立一个到 FCM 服务器的 websocket ?还是用 Service Work ?必须使用 Google 的浏览器么?自己能配置服务器么?

    3 replies    2023-06-15 17:38:39 +08:00
    yarnom
        1
    yarnom  
       Jun 15, 2023 via Android   ❤️ 1
    haaro
        2
    haaro  
       Jun 15, 2023   ❤️ 1
    Android transport layer (ATL) for Android devices with Google Play services
    Apple Push Notification service (APNs) for Apple devices
    Web push protocol for web apps

    https://web.dev/push-notifications-web-push-protocol/
    zhwguest
        3
    zhwguest  
    OP
       Jun 15, 2023
    谢谢两位,感谢~
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3201 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 14:36 · PVG 22:36 · LAX 07:36 · JFK 10:36
    ♥ Do have faith in what you're doing.