gpt4 book ai didi

apple-push-notifications - 为什么我需要 GCM 或 APN?

转载 作者:行者123 更新时间:2023-12-02 20:44:17 25 4
gpt4 key购买 nike

为什么各个应用服务器不能直接向他们的移动应用发送通知?拥有一个集中通知平台有什么好处?

最佳答案

从这里thread , GCM是一项服务,可帮助开发人员将数据从服务器发送到他们在 Android 设备上的 Android 应用程序。与 APN 相同这是应用程序开发人员向 iOS(以及间接地向 watchOS)、tvOS 和 macOS 设备传播信息的服务。

您可以检查这些主题:

  • Why it is preferred to use GCM for push notifications?

    Let's say you have 50 applications on your phone that do not use GCM. Each app developer decides it is appropriate to poll their respective backend once a minute.

    Since these are all separate applications, each call will likely not happen at the same time as another api call. The biggest kill to battery is when the radio within an android device has to turn back on after being off to make an API call, so multiple calls happening with blocks of time in between drains battery faster (read this article on the radio state machine to better understand why this is https://developer.android.com/training/efficient-downloads/efficient-network-access.html)

    In addition, each application will be hitting a separate endpoint. Each time you make an API call, you have to go through the connect process for a given server. With batched api requests or HTTP 2.0, multiple calls going to the same server can be optimized by not having to re-do a handshake or the connect process.

  • What are some advantages of push notifications?

    • Wide reach across internet users.
    • High conversion rates.
    • Real-time communication.
  • Push Notifications Explained

希望这对您有所帮助!

关于apple-push-notifications - 为什么我需要 GCM 或 APN?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45048817/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com