即使应用程序在后台运行且未打开,WhatsApp如何知道用户是否获得了推送通知? [英] How does WhatsApp know if the user gets the push notification even if the app is runnng in the background and is not open?

查看:398
本文介绍了即使应用程序在后台运行且未打开,WhatsApp如何知道用户是否获得了推送通知?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经问过相关问题:
知道苹果应用程序是否获得推送通知的任何选项?

I have already asked related question: any option to know if apple app get the push notification?

我得到的答案是,无法知道推送通知当应用程序在后台并且用户没有打开它时来到iPhone ...

And I got an answer that it is not possible to know if push notification comes to the iPhone when application is in the background and the user does not have it opened...

但我发现了一些有趣的东西:
我带2个iPhone与WhatsApp。我在第一部iPhone中打开WhatsApp并退出它(WhatsApp现在在后台),然后用第二部iPhone,我将WhatsApp按摩发送到第一部iPhone。

But I found something interesting: I take 2 iPhones with WhatsApp. I open, in the first iPhone, WhatsApp and exit it (the WhatsApp is in the background now), then with the second iPhone, I send WhatsApp massage to the first iPhone.

当WhatsApp的推送通知到达第一个iPhone时,我可以在消息附近看到两个V(符号)(我不打开推送通知)。在此之后,我关闭了互联网& 3G在第一部iPhone中再次发送WhatsApp消息与第二部iPhone到第一部iPhone。 - 我可以看到按摩附近只有一个V(没有读过 - 没有得到推送通知)。

When the push notification of WhatsApp reaches first iPhone I can see two "V" (symbols) near to the message (and I don't open the Push notification). After this I close the Internet & 3G in the first iPhone and again send WhatsApp message with the second iPhone to the first one. - and I can see only one "V" near to the massage (not read - not get push notification).

现在在第一部iPhone上重新启用互联网在我收到推送通知后,我可以看到两个V(再次 - 我不打开推送通知)。

Now after re-enabling the Internet on the first iPhone and after I get the push notification I can see two "V" (again - I don't open the push notification).

它是如何工作的?当WhatsApp在后台运行时,WhatsApp如何知道iPhone是否收到推送通知?

How does it work? How does WhatsApp know whether the iPhone gets the push notification or not while the WhatsApp works in the background?

推荐答案

让我们在关闭WhatsApp应用程序的情况下调用iPhone - 接收器以及您发送的其他iPhone使用 - 发件人的邮件,让我们使用通用术语应用程序而不是 WhatsApp

Let us call the iPhone with WhatsApp application closed - the receiver and the other iPhone you send messages with - the sender, and let us use generic term application instead of WhatsApp

发件人的应用程序无法获知推送通知已到达接收方。这是推送通知的性质。

The application at the sender is not able to learn that push notification has reached the receiver. It is by the nature of push notifications.

然而,发件人可以发送另一个 - 不是推送通知,而是专有协议 - 向接收方的应用程序发送消息,欢迎它(接收方)以任何特定于应用程序的方式向发送方进行确认。

However, the sender is possible to send another - not a push notification, but prioprietary protocol - message to the application at the receiver which it (the receiver) is welcome to acknowledge to the sender in any application-specific way it wants.

所以,我猜(我不知道 - 我与WhatsApp无关),你得到的双v图标是应用程序消息何时到达接收器上的应用程序 - 与推送通知无关。

So, I would guess (I don't know - I'm not affiliated with WhatsApp in anyway) that the double-v icon you get is when application message reaches the application at the receiver - and has nothing to do with push notification.

这篇关于即使应用程序在后台运行且未打开,WhatsApp如何知道用户是否获得了推送通知?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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