网络连接恢复后,Iphone是否收到所有推送通知

时间:2022-08-26 22:05:04

I am developing an application with push notification.

我正在开发一个带有推送通知的应用程序。

When the receiver is not connected to WIFI/internet while the sender is sending messages, does the receiver receive all of the sent messages when the receiver reconnects to the internet?

当发送方发送消息时,接收方未连接到WIFI/internet时,接收方是否在重新连接到internet时接收所有发送的消息?

3 个解决方案

#1


7  

There is a queue that will be sent to the user once he/she gets an internet access. However if the user is without internet for a "long time" there is no guarantee that the notification will be sent/recveived.

一旦用户访问了互联网,就会有一个队列被发送给他/她。但是,如果用户长时间没有互联网,则不能保证会发送/收到通知。

The Apple documentation is very vague on what amount of time that is considered long time. (See documentation)

苹果公司的文档非常模糊,不知道要花多长时间。(见文件)

Apple Push Notification service includes a default Quality of Service (QoS) component that performs a store-and-forward function.

Apple Push通知服务包括一个默认的服务质量(QoS)组件,该组件执行存储和转发功能。

If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available.

如果APNs试图发送通知,但设备处于脱机状态,则通知将被存储一段有限的时间,并在通知可用时交付给设备。

Only one recent notification for a particular application is stored. If multiple notifications are sent while the device is offline, each new notification causes the prior notification to be discarded. This behavior of keeping only the newest notification is referred to as coalescing notifications.

只存储一个特定应用程序的最近通知。如果在设备脱机时发送多个通知,则每个新通知都会导致丢弃以前的通知。这种只保留最新通知的行为称为合并通知。

If the device remains offline for a long time, any notifications that were being stored for it are discarded.

如果设备长期处于脱机状态,则为其存储的任何通知都将被丢弃。

However I've heard that the APNS will try to resend the notification for approximately 25-30 days. However there is no official documentation supporting this!

但是我听说APNS会在大约25-30天内重新发送通知。然而,没有官方文件支持这一点!

#2


0  

When the device is connecting to APNs over WiFi ensure that no firewalls are blocking inbound and outbound TCP packets over port 5223. 5223 port communicate with APNS . and see following are other solution for it.

当设备通过WiFi连接到APNs时,确保没有防火墙在端口5223上阻塞入站和出站TCP包。5223端口与APNS通信。下面是其他的解决方法。

TCP port 5223 to communicate with APNs. TCP port 2195 to send notifications to APNs. TCP port 2196 for the APNs feedback service. TCP port 443 is required during device activation, and afterwards for fallback (on Wi-Fi only) if devices can't reach APNs on port 5223. Check with your network administrator to make sure that the ports are accessible.

TCP端口5223与APNs通信。TCP端口2195向APNs发送通知。APNs反馈服务的TCP端口2196。在设备激活过程中需要TCP端口443,如果设备不能到达端口5223上的APNs,则需要返回到回退(只在Wi-Fi上)。请与您的网络管理员检查,以确保端口是可访问的。

#3


0  

No by APNS and other fire base its not possible to get all notification. we can take only the last notification send by the application .

不,APNS和其他消防基地不可能收到所有通知。我们只能接收应用程序发送的最后一个通知。

another possible solution is to save in database and write one scheduler to fire notification after period of time limit.

另一种可能的解决方案是在数据库中保存,并编写一个调度器在一段时间后触发通知。

#1


7  

There is a queue that will be sent to the user once he/she gets an internet access. However if the user is without internet for a "long time" there is no guarantee that the notification will be sent/recveived.

一旦用户访问了互联网,就会有一个队列被发送给他/她。但是,如果用户长时间没有互联网,则不能保证会发送/收到通知。

The Apple documentation is very vague on what amount of time that is considered long time. (See documentation)

苹果公司的文档非常模糊,不知道要花多长时间。(见文件)

Apple Push Notification service includes a default Quality of Service (QoS) component that performs a store-and-forward function.

Apple Push通知服务包括一个默认的服务质量(QoS)组件,该组件执行存储和转发功能。

If APNs attempts to deliver a notification but the device is offline, the notification is stored for a limited period of time, and delivered to the device when it becomes available.

如果APNs试图发送通知,但设备处于脱机状态,则通知将被存储一段有限的时间,并在通知可用时交付给设备。

Only one recent notification for a particular application is stored. If multiple notifications are sent while the device is offline, each new notification causes the prior notification to be discarded. This behavior of keeping only the newest notification is referred to as coalescing notifications.

只存储一个特定应用程序的最近通知。如果在设备脱机时发送多个通知,则每个新通知都会导致丢弃以前的通知。这种只保留最新通知的行为称为合并通知。

If the device remains offline for a long time, any notifications that were being stored for it are discarded.

如果设备长期处于脱机状态,则为其存储的任何通知都将被丢弃。

However I've heard that the APNS will try to resend the notification for approximately 25-30 days. However there is no official documentation supporting this!

但是我听说APNS会在大约25-30天内重新发送通知。然而,没有官方文件支持这一点!

#2


0  

When the device is connecting to APNs over WiFi ensure that no firewalls are blocking inbound and outbound TCP packets over port 5223. 5223 port communicate with APNS . and see following are other solution for it.

当设备通过WiFi连接到APNs时,确保没有防火墙在端口5223上阻塞入站和出站TCP包。5223端口与APNS通信。下面是其他的解决方法。

TCP port 5223 to communicate with APNs. TCP port 2195 to send notifications to APNs. TCP port 2196 for the APNs feedback service. TCP port 443 is required during device activation, and afterwards for fallback (on Wi-Fi only) if devices can't reach APNs on port 5223. Check with your network administrator to make sure that the ports are accessible.

TCP端口5223与APNs通信。TCP端口2195向APNs发送通知。APNs反馈服务的TCP端口2196。在设备激活过程中需要TCP端口443,如果设备不能到达端口5223上的APNs,则需要返回到回退(只在Wi-Fi上)。请与您的网络管理员检查,以确保端口是可访问的。

#3


0  

No by APNS and other fire base its not possible to get all notification. we can take only the last notification send by the application .

不,APNS和其他消防基地不可能收到所有通知。我们只能接收应用程序发送的最后一个通知。

another possible solution is to save in database and write one scheduler to fire notification after period of time limit.

另一种可能的解决方案是在数据库中保存,并编写一个调度器在一段时间后触发通知。