How much delay of ios push notification?

前端 未结 3 1153
感情败类
感情败类 2020-11-30 04:12

I want to add a fire alarm function to my app. I think the push notification may be the best choice. But if there is much delay, like over 10 mins, it would be meaningless

相关标签:
3条回答
  • 2020-11-30 04:37

    I just found this while trying to resolve another issue I was having. A viable solution for this problem would be something like PubNub. They offer reliability, performance, and service guarantees

    0 讨论(0)
  • 2020-11-30 04:51

    To avoid the delay,we should take care libraries of FCM in build.gradle(both project and module level ) and google-services.json. All should be up to date.

    0 讨论(0)
  • 2020-11-30 04:53

    Push notifications are unreliable and cannot be guaranteed that they have been delivered. It all depends on the apple APNS server, that said, usually when I send a push notification I get the result in under a few seconds.

    More Information:

    They are not reliable! There is no guarantee that push notifications will actually be delivered, even if the APNS server accepted them.

    As far as your server is concerned, push notifications are fire-and-forget; there is no way to find out what the status of a notification is after you’ve sent it to APNS. The delivery time may also vary, from seconds up to half an hour.

    Also, the user’s iPhone may not be able to receive push notifications all the time. They could be on a WiFi network that does not allow connections to be made to APNS because the required ports are blocked. Or the phone could be turned off.

    APNS will try to deliver the last notification it received for that device when it comes back online, but it will only try for a limited time. Once it times out, the push notification will be lost forever!

    Source: http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12

    0 讨论(0)
提交回复
热议问题