推送通知需要太长时间才能到达 [英] Push Notifications take too long to arrive

查看:156
本文介绍了推送通知需要太长时间才能到达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在iOS和Android的adobe air应用程序中,推送通知出现了奇怪的问题.

I'm having a weird problem with push notifications in an adobe air app for iOS and Android.

我正在使用Milkman Games的Easy Push ANE和One Signal服务.

I'm using the Easy Push ANE from Milkman Games along with the One Signal service.

问题在于通知确实到达了,但是有时(随机),消息在发送之后最多可能需要15分钟才能到达设备.

The problem is that notifications do arrive, but sometimes (randomly), it can take up to 15 minutes for the messages to arrive at the device after they are sent.

这对于我的应用程序(出租车预订应用程序)至关重要,因为我依赖于推送通知来实现出租车应用程序与用户应用程序之间的通信.因此,例如,如果用户请求出租车,则最多可能需要15分钟才能通知出租车应用程序.

This is critical for my app (a taxi booking app), since i'm relying on the push notifications for the communication between the taxi app and the users app. So, for example, if a user requests a taxi, it can take up to 15 minutes for the taxi app to be notified.

与One Signal支持人员进行了交谈,据他们说,一切都很好,如果我查看One Signal仪表板,则几乎所有时间都即时收到通知.

Talked to One Signal support, and according to them everything is ok on their end, and if I look at the One Signal dashboard, the notifications are delivered almost instantly all the time.

这种延迟的原因可能是什么?我该怎么做才能使事情变得更好?

What could be the reason of this delays? and what could i do to make things better?

谢谢.

推荐答案

通常,推送通知会很快到达.但是在一些罕见的情况下,我们看到它们被延迟了:

Normally push notifications do arrive quite quickly. But there are some rare cases where we've seen them get delayed:

在Android设备上进行通知的延迟时间:

Delays for notifications on Android Devices:

  1. 某些家用和商用wifi路由器会导致设备与Google GCM服务器的连接关闭.设备稍后重新打开连接并接收延迟的通知. (在此处讨论: https://groups.google.com/forum/# !topic/android-gcm/Y33c9ib54jY )

Android操作系统的某些自定义版本具有省电设置,该设置可能导致通知被延迟或忽略.例如,Sony Xperia设备具有耐力模式". (在这里讨论: https://talk.sonymobile.com/t5/Xperia-Z3-Compact/Notifications-not-Working-When-Phone-in-Sleep-Mode/td-p/879641 )

Some custom versions of the Android OS have a power-saving setting that can cause notifications to be delayed or ignored. For instance, Sony Xperia devices have a "Stamina Mode". (Discussed here: https://talk.sonymobile.com/t5/Xperia-Z3-Compact/Notifications-not-Working-When-Phone-in-Sleep-Mode/td-p/879641)

某些Android设备在电池电量不足时可以进入低功耗模式,这可能会导致接收通知的时间稍有延迟.

Some Android devices can enter a low power mode when their battery is low that may cause slight delays in receiving notifications.

iOS设备上的通知延迟:

Delays for notifications on iOS devices:

  1. 将通知发送到具有开发配置文件的设备时,Apple的APNS服务器有时可能不那么快速或可靠.您可以将使用AdHoc配给配置文件和生产推送证书构建的应用程序版本进行比较,以查看其效果是否更好.在不久的将来,苹果公司将改变该系统的工作方式,以解决该问题.

  1. When sending notifications to a device build with a development provisioning profile, Apple's APNS servers may sometimes be less fast or reliable. You can compare a version of your app built with an AdHoc provisioning profile and a production push certificate to see if it works better. In the near future, Apple will be changing the way this system works so this problem will go away.

与Android一样,某些wifi路由器会导致iOS通知传递延迟.

As with Android, some wifi routers will cause iOS notification delivery delays.

如果为应用程序选中了限制后台数据",在高级设置中启用了Wifi-Optimization或启用了优先级模式,则​​通知可能会延迟.

Notifications may be delayed if "Restrict background data" is checked for the app, if Wifi-Optimization is turned on in the advanced settings, or if priority mode is enabled.

WhatsApp在其常见问题页面的底部,有一个很好的说明列表,用于对延迟的Android和iOS通知进行故障排除: https://www.whatsapp.com/faq/zh/android/20887936

WhatsApp has a good list of instructions on troubleshooting delayed Android and iOS notification at the bottom of their FAQ page here: https://www.whatsapp.com/faq/en/android/20887936

总的来说,上述问题很少见,几乎所有用户都会及时收到通知.但是,对于您的特定用例,您可能会发现短信"是一种更可靠的工具.

Overall, the above problems are rare and almost all users will receive notifications promptly. However for your specific use case you may find Text Messages to be a more reliable tool.

这篇关于推送通知需要太长时间才能到达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆