You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I always get wrong and random (!) values. Two queries, immediately following one another, for the same phone, produce different (+/- 10 days!) results. For testing, I have two phone numbers, one of them does not have WhatsApp account at all, second one have it up and running (with official app), so I pretty sure about values I expect.
I checked sources (WhatsSendBase.handleIq()) and found nothing suspicious.
I am able to send and recieve messages correctly, the problem is only about LastSeen time.
One more question - what I get, if there is no WhatsApp account for that phone?
Will appreciate any help, thanks.
The text was updated successfully, but these errors were encountered:
It appears WA is not following XMPP strictly, this method of getting last user status does not work.
To get user' status you need to use SendPresenceSubscriptionRequest() and listen to OnGetPresence event.
Also, that event handling should look like this (see WhatsSendBase.cs:236)
I am trying to get LastSeen time for a certain phone (code simplified):
I always get wrong and random (!) values. Two queries, immediately following one another, for the same phone, produce different (+/- 10 days!) results. For testing, I have two phone numbers, one of them does not have WhatsApp account at all, second one have it up and running (with official app), so I pretty sure about values I expect.
I checked sources (
WhatsSendBase.handleIq()
) and found nothing suspicious.I am able to send and recieve messages correctly, the problem is only about LastSeen time.
One more question - what I get, if there is no WhatsApp account for that phone?
Will appreciate any help, thanks.
The text was updated successfully, but these errors were encountered: