rizwansoaib / whatsapp-monitor

Free Whatsapp Online Tracker 📲 | WhatsApp last seen tracker | [Get Notification 🔔 and history 📜 of Online WhatsApp Contact]
https://wpmonitor.online
GNU General Public License v3.0
1.04k stars 202 forks source link

Logging stops for non-contacts #128

Open MarcKete opened 2 years ago

MarcKete commented 2 years ago

Describe the bug The history logging for people that are in your address book, but never chatted with before (non contacts), stops after 10 to 15 minutes. Meaning that you have to click on your whatsapp on your phone (as it doesn't work via the web based version neither) on that specific contact every 10 to 15 min of you like to see activity. This is a really annoying limitation) a it's not always possible to keep track of that.

To Reproduce

  1. Open whatsappweb + whatsapp on phonr
  2. click on non-contact on your phone, you will see the same result on the web version
  3. wait for more then 10 to 15 min
  4. select the same non contact as before and look at the date stamp of that person on the webbased version
  5. Click on the non-contact on your phone version
  6. if that person was online between that time period you will see a different timestamp - automatically the webbased version get updated after opening WA on you phone

Expected behavior The logging/Monitoring works similar to the one of contact (people you have chatted with before)

Screenshots N/A

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

Sidrti commented 2 years ago

Now it seems that it doesnt even shows the online status of contacts that aren't in the address book or contacts that we havent chatted before

rizwansoaib commented 2 years ago

Now it seems that it doesnt even shows the online status of contacts that aren't in the address book or contacts that we havent chatted before

+1

rizwansoaib commented 2 years ago

I check personally whatsapp did this previous alteast open in mobile you will able to status in mobile as well as whatsapp web but now not working...

MarcKete commented 2 years ago

OK, but you cannot open your whatsapp web on your computer or phone every10 min and click on the non chat contact just to keep the logging working. Even when you switch to 4g, the whatsapp web logging on your computer seems to stop logging.

rizwansoaib commented 2 years ago

Yes for non chat you need some automation you can use (monkey runner,appium,robotium,UI automate) for android.

On Thu, 2 Dec, 2021, 7:37 pm MarcKete, @.***> wrote:

OK, but you cannot open your whatsapp web on your computer or phone every10 min and click on the non chat contact just to keep the logging working. Even when you switch to 4g, the whatsapp web logging on your computer seems to stop logging.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-984658927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC2EZALBYG2BET7E4ZHTUTUO54Q7ANCNFSM5HLUXBJA .

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

rizwansoaib commented 2 years ago

Or just send . To contact

On Thu, 2 Dec, 2021, 7:38 pm Rizwan Ahmad, @.***> wrote:

Yes for non chat you need some automation you can use (monkey runner,appium,robotium,UI automate) for android.

On Thu, 2 Dec, 2021, 7:37 pm MarcKete, @.***> wrote:

OK, but you cannot open your whatsapp web on your computer or phone every10 min and click on the non chat contact just to keep the logging working. Even when you switch to 4g, the whatsapp web logging on your computer seems to stop logging.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-984658927, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC2EZALBYG2BET7E4ZHTUTUO54Q7ANCNFSM5HLUXBJA .

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

rizwansoaib commented 2 years ago

Whatsapp web team changing everyday we have to wait for stable release multi linked device.

MarcKete commented 2 years ago

Or just send . To contact On Thu, 2 Dec, 2021, 7:38 pm Rizwan Ahmad, @.> wrote: Yes for non chat you need some automation you can use (monkey runner,appium,robotium,UI automate) for android. On Thu, 2 Dec, 2021, 7:37 pm MarcKete, @.> wrote: > OK, but you cannot open your whatsapp web on your computer or phone > every10 min and click on the non chat contact just to keep the logging > working. Even when you switch to 4g, the whatsapp web logging on your > computer seems to stop logging. > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > <#128 (comment)>, > or unsubscribe > https://github.com/notifications/unsubscribe-auth/AHC2EZALBYG2BET7E4ZHTUTUO54Q7ANCNFSM5HLUXBJA > . > -- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time. This email is governed by the Disclaimer Terms of  KNIT.

sending a "." is not really an option, I'm afraid

rizwansoaib commented 2 years ago

Screenshot_2021-12-08-22-47-25-304_com android vending

Screenshot_2021-12-08-22-41-47-789_com android vending

08 Dec 2021 many paid apps also facing issues but some of them also working now .

CyanSeas commented 2 years ago

Screenshot 2021-12-10 000058

Now this seems interesting, would it be possible?

rizwansoaib commented 2 years ago

WA_PRIVACY_THIRD_PARTY_APPS_CUSTOMER_SUPPORT_REPLY

rizwansoaib commented 2 years ago

Have you on latest whatsapp version?

Sidrti commented 2 years ago

These applications are working.I dont know what the hell they are doing. ;-)

MarcKete commented 2 years ago

Surely there's more information to be found in the online data then where's you are looking into. Is he amount of data sent/received kept for every WA user? Maybe that would give you a lead?

Sidrti commented 2 years ago

Rizwan commented out that might be they are tweaking whatsapp api to fetch the online status

MarcKete commented 2 years ago

I'm using the beta 2.21.25.21 on my Adnroid Samsung phone

rizwansoaib commented 2 years ago

Rizwan commented out that might be they are tweaking whatsapp api to fetch the online status

Even whatsapp had released official statement that will trying to stop feature intentionally then it should

MarcKete commented 2 years ago

Rizwan commented out that might be they are tweaking whatsapp api to fetch the online status Even whatsapp had released official statement that will trying to stop feature intentionally then it should

How do you mean exactly? that even the commercial apps won't be able to show this in the future? For now it seems to be still working for them even with the tightened security patch.

I still don't understand why they do this? It seems this way they are promoting people secretly do stuff via WA?

rizwansoaib commented 2 years ago

Yes it's possible now for commercial app but many app developers also facing issues their app is not working but some apps still working so maybe they will also not work in future as whatsapp.

On Mon, 13 Dec, 2021, 5:05 pm MarcKete, @.***> wrote:

Rizwan commented out that might be they are tweaking whatsapp api to fetch the online status Even whatsapp had released official statement that will trying to stop feature intentionally then it should

How do you mean exactly? that even the commercial apps won't be able to show this in the future? For now it seems to be still working for them even with the tightened security patch

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-992374518, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC2EZFKZKZANN7YELM7G2LUQXK63ANCNFSM5HLUXBJA .

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

CyanSeas commented 2 years ago

After the update, I had an issue that my Web Whatsapp would turn into a white page after leaving my PC open for a few hours. Was it just me or has anyone else facing the same?

MarcKete commented 2 years ago

Haven't had that issue.. though had already some behaviour on Web WA that when pc goes into screensaver, web WA disconnects and the plug in needs to be restarted as well

rizwansoaib commented 2 years ago

Yes I tried but will try again to find solutions for this.

On Wed, 15 Dec, 2021, 1:48 pm MarcKete, @.***> wrote:

Haven't had that issue.. though had already some behaviour on Web WA that when pc goes into screensaver, web WA disconnects and the plug in needs to be restarted as well

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-994480786, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC2EZFSK5I77LY7PMCNVD3URBFL3ANCNFSM5HLUXBJA .

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

rizwansoaib commented 2 years ago

You are really genius that you bypassed whatsapp privacy update many people tried but now your method is working fine.

I am glad to know someone cracked it.

Thank you for valuable information that you have provided.

I hope in future we will collaborate with you and try to improve this.

Thanks for the update.

Once I will be free I will let you know.

Thank You very much for your support.

On Thu, 20 Jan, 2022, 1:12 pm malaguer, @.***> wrote:

Yes I tried but will try again to find solutions for this. … <#m6035224501559866165> On Wed, 15 Dec, 2021, 1:48 pm MarcKete, @.**> wrote: Haven't had that issue.. though had already some behaviour on Web WA that when pc goes into screensaver, web WA disconnects and the plug in needs to be restarted as well — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#128 (comment) https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-994480786>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC2EZFSK5I77LY7PMCNVD3URBFL3ANCNFSM5HLUXBJA . -- Disclaimer: * Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time. This email is governed by the Disclaimer Terms of KNIT.

I've discovered your program very recently. I don't know if this information may help you but I've managed to make the program work, tracking correctly contacts' online statuses and also non contacts being tracked.

To achieve this I'have had to set up a particular configuration:

  1. I use your WA-Mon for Windows version (I mean the .exe version).
  2. I install it on a VirtualBox VM machine, so that I can leave it working in background forever and ever
  3. To track whichever contact I want, I need them to be on the startup WA window (that is, the recent conversations tab)
  4. Finally I created a very simple batch script which loops through the contact list one by one with a 2 seconds delay, so that I keep all tracking connections alive

Considerations:

  • To make a contact appears on Recent Chats Tab (but not letting them to notice), what I do is going offline (airplane mode) on the phone. Then I send any character to a new conversation for every contact I want to track, and finally I use the 'delete for all' option with that message. Then I de-activate airplane mode and go online again.

Doing this I get every contact I want to track to appears on Recent Chats (and I have checked that they don't recieve any message, so they don't notice anything).

Also, doing this, I can bypass the new WhatsApp privacy "protection" they're talking about these days. Apparently, if you try to track someone whom you've never had any conversation before, WA doesn't show you the 'online' status or the 'last seen' info.

Doing the simple step I describe above (for creating a fake 'recent chat' conversation) solves this problem.

  • The Batch Script I use for looping through the contacts is currently a needed process to keep tracking connections alive. I've made several tests and everytime I stopped the loop process, tracking connections were killed in a few minutes. So, as far as I know, WA-Mon doesn't work correctly the way you describe in your site (I mean the requisite of opening a chat before starting tracking). In current WA versions that step is not enough to keep the tracking alive.

Sorry if I extended so much writing, I wanted to explain the working tracking method the best way I can. I hope you may find this information useful for your development.

— Reply to this email directly, view it on GitHub https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-1017198596, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHC2EZHBK46REEXZLRCTNYDUW64HVANCNFSM5HLUXBJA . You are receiving this because you commented.Message ID: @.***>

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

rizwansoaib commented 2 years ago

@malaguer you contribution will help a lot of people who are using this Tool as well as for me for future development.

https://os2int.com/toolbox/monitoring-the-activity-of-whatsapp-contacts-with-whatsapp-monitor/

Thank You

sestelo2 commented 2 years ago

Yes I tried but will try again to find solutions for this.

I've discovered your program very recently. I don't know if this information may help you but I've managed to make the program work, tracking correctly contacts' online statuses and also non contacts being tracked.

To achieve this I'have had to set up a particular configuration:

  1. I use your WA-Mon for Windows version (I mean the .exe version).
  2. I install it on a VirtualBox VM machine, so that I can leave it working in background forever and ever
  3. To track whichever contact I want, I need them to be on the startup WA window (that is, the recent conversations tab)
  4. Finally I created a very simple batch script which loops through the contact list one by one with a 2 seconds delay, so that I keep all tracking connections alive

Considerations:

  • To make a contact appears on Recent Chats Tab (but not letting them to notice), what I do is going offline (airplane mode) on the phone. Then I send any character to a new conversation for every contact I want to track, and finally I use the 'delete for all' option with that message. Then I de-activate airplane mode and go online again.

Doing this I get every contact I want to track to appears on Recent Chats (and I have checked that they don't recieve any message, so they don't notice anything).

Also, doing this, I can bypass the new WhatsApp privacy "protection" they're talking about these days. Apparently, if you try to track someone whom you've never had any conversation before, WA doesn't show you the 'online' status or the 'last seen' info.

Doing the simple step I describe above (for creating a fake 'recent chat' conversation) solves this problem.

  • The Batch Script I use for looping through the contacts is currently a needed process to keep tracking connections alive. I've made several tests and everytime I stopped the loop process, tracking connections were killed in a few minutes. So, as far as I know, WA-Mon doesn't work correctly the way you describe in your site (I mean the requisite of opening a chat before starting tracking). In current WA versions that step is not enough to keep the tracking alive.

EDIT: I forgot to explain how to make 'non contacts' to appear in recent chats. To get this you only need to visit the url https://wa.me/(NUMBER) to open a new chat with that phone number. Being (NUMBER) the phone number of the 'non-contact' person including country code.

Sorry if I extended so much writing, I wanted to explain the working tracking method the best way I can. I hope you may find this information useful for your development.

Sorry but don't work for me. Are there something especial in the configuration! like android version, whastapp version, beta version etc

if i delete from the mobile, i don't see the status and if i delete from whastapp web the other person see an empty delete conversation

sestelo2 commented 2 years ago

The fake ~message~ chat is created from the mobile, because the process is made offline following the steps I mentioned before: 1) Going offline (airplane mode). 2) Sending any text to the contact. 3) Deleting that ~message~ text (not the conversation) 4) Going online again

that is the problem, I do this in IOS, but never appear "online" in the top of the chat. I think there are some "extra" step to enable the online text for non-contacts

sestelo2 commented 2 years ago

I try again, with ios, android, 2 number that never chatted before don't see online. The detection of the online status never appear

clecthiago commented 2 years ago

great @malaguer :+1:

  • I install it on a VirtualBox VM machine, so that I can leave it working in background forever and ever

I would like to know about this part above. Why do you do that on a VM ? I was thinking to do something to avoid notifications and maybe this will help me . You do it with the same purpose ? By the way, all the process mentioned by you is on the VM or you use the monitoring on you r host ?

Thanks for contribute and for any helps

Borzalic commented 2 years ago

Is it a solution to use old versions of Whatsapp for Android phones? Is the problem only related to WhatsappWeb? The solution to write to contacts while in airplane mode doesn't work right now. I will try with Business API during the day.

clecthiago commented 2 years ago

Please, share any results you can find. Now I am curious to see if anyone else can replicate the process or if it's something in my set up.

I'm trying right now setup a lightweight linux with chrome or chormium into a Virtualbox VM (@malaguer i really liked a lot this for problem with notifications - i'm using at work)

I dont have WA Business, so I 'll try soon with my Normal WA. In fact, i didnt understand very well about the needs of use this. I suppose you has 2 WA numbers right ?

I need a thing to confess than I am/was little afraid about send a message (in airplane-mode off) to someone. So, if someone is afraid like me, my tip is try with a market WA number from randon websites. I meaning (at image below) than some websites has a button located at the botton the page (1), if you stay your mouse over on (1) or the wpp logo (2), you'll see the wa-number from them.image

By the way, i'm trying puppy linux with 2048 RAM, my idea is use the minimum requirements to use only for web-WA with the extension.

Borzalic commented 2 years ago

Please, share any results you can find. Now I am curious to see if anyone else can replicate the process or if it's something in my set up.

I'm trying right now setup a lightweight linux with chrome or chormium into a Virtualbox VM (@malaguer i really liked a lot this for problem with notifications - i'm using at work)

I dont have WA Business, so I 'll try soon with my Normal WA. In fact, i didnt understand very well about the needs of use this. I suppose you has 2 WA numbers right ?

I need a thing to confess than I am/was little afraid about send a message (in airplane-mode off) to someone. So, if someone is afraid like me, my tip is try with a market WA number from randon websites. I meaning (at image below) than some websites has a button located at the botton the page (1), if you stay your mouse over on (1) or the wpp logo (2), you'll see the wa-number from them.image

By the way, i'm trying puppy linux with 2048 RAM, my idea is use the minimum requirements to use only for web-WA with the extension.

Can you track non-contact right now with this method?

Borzalic commented 2 years ago

In fact, i didnt understand very well about the needs of use this. I suppose you has 2 WA numbers right ?

Yes, I have a Dual SIM Smartphone. So I use the secondary phone line to make the tests. Also doing this I can leave the secondary WA connected all day long and avoid anyone to see me online with my everyday number, and at the same time, I can track any number on the 2nd line even if they don't have me as a contact. That's the only reason.

I was afraid of sending offline messages (and deleting them) to create a 'Recent' chat in WA. That was one of the reasons to use 2 SIM cards. My 2nd phone line never had any chat or contact thorugh WA with my Main phone line. That was my first test. When I saw it worked I tried with other numbers and I could check that the method was working.

So, to me, the method I explained above is working right now when I need to use it.

I hope someone else can test by themselve the method and know if it works for them also.

I tried this method. I left Whatsapp Web open with the plugin on my Windows VDS server, but no results. I put the phone in airplane mode, wrote the message and deleted the message I sent. The contact appeared in my contact list. However, I could not follow up.

rizwansoaib commented 2 years ago

Are you on Beta ?

you commented.Message ID: @.***>

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

rizwansoaib commented 2 years ago

Are you using whatsapp beta try to switch non beta or if you are already beta try to switch beta version.

I am not sure that this will work or not just assuming maybe you will get some more info.

-- Disclaimer:  Messages from 'knit.ac.in http://knit.ac.in' mail server and any associated files may contain information that is confidential, subject to copyright or contains proprietary information. If you are not the intended addressee you are hereby notified that any dissemination, copying or distribution of these messages, or files associated with these messages is prohibited. If you have received the message in error, please notify us by replying to the concerned message and deleting it from your computer. Please also scan the message to verify that it is virus free. Thank you for your time.

This email is governed by the Disclaimer Terms of  KNIT.

MegaMatze commented 2 years ago

How can I enable that script that the contacts switch open automatically? For me the contacts open once at first start but then stay open and then connection gets lost

clecthiago commented 2 years ago

Can you track non-contact right now with this method?

Hi @Borzalic !!

Sorry, maybe I was not clear. Actually i didnt't have time to try. I want to set up a VM and automatization folowing the @malaguer's bypass

My observation bout the picture in my last comment was a try to send a clue for everyone who is afraid about send a offline msg to non-contact.

clecthiago commented 2 years ago

I was afraid of sending offline messages (and deleting them) to create a 'Recent' chat in WA. That was one of the reasons to use 2 SIM cards. My 2nd phone line never had any chat or contact thorugh WA with my Main phone line. That was my first test. When I saw it worked I tried with other numbers and I could check that the method was working.

Absolute great @malaguer !! :+1:

Can you (or someone) make a test for me/us please ?

I open a new issue #146 and maybe is a thing (unrelated with this question) with extension (i'll open another if necessary), or my contact deleted me from their life.

clecthiago commented 2 years ago

How can I enable that script that the contacts switch open automatically?

Hi @MegaMatze ! The "switch open" is a script made by someone to do the automatization.

I'm Using Linux, and I'll try to make "the script" soon for me and if works, I'll provide to someone needs in Linux.

Which S.O are you using ? If you using Windows, maybe AutoHotkey be helpfull.

MegaMatze commented 2 years ago

Hi @clecthiago thanks man. That would be great if you could supply of possible. I am using Ubuntu on a vm. That does work if actively using.

Manofwar32 commented 2 years ago

Changes to hide online status and refresh open chats

protobuf.js

//Refresh chats so they don't expire setInterval(function() { try { // Groups not active var e = window.Store.Chat.models.filter(a=>a.isGroup==false) e.forEach(function (e) {window.Store.Presence2.subscribePresence(e.id)}); } catch (e) { console.log(e) } }, 2000 )

//Activate hidden mode setInterval(function() { window.Store.Presence2.setPresenceUnavailable() }, 1E3);

try { window.Store.Presence2.setPresenceAvailable; window.Store.Presence2.setPresenceAvailable = function() { return new Promise } ; } catch (e) { console.log(e) }

websocket.js

Add to neededObjects array

{id: "Presence2",conditions:function(e){return e.setPresenceAvailable&&e.setPresenceUnavailable?e:null}}

rizwansoaib commented 2 years ago

Changes to hide online status and refresh open chats

protobuf.js

//Refresh chats so they don't expire setInterval(function() { try { // Groups not active var e = window.Store.Chat.models.filter(a=>a.isGroup==false) e.forEach(function (e) {window.Store.Presence2.subscribePresence(e.id)}); } catch (e) { console.log(e) } }, 2000 )

//Activate hidden mode setInterval(function() { window.Store.Presence2.setPresenceUnavailable() }, 1E3);

try { window.Store.Presence2.setPresenceAvailable; window.Store.Presence2.setPresenceAvailable = function() { return new Promise } ; } catch (e) { console.log(e) }

websocket.js

Add to neededObjects array

{id: "Presence2",conditions:function(e){return e.setPresenceAvailable&&e.setPresenceUnavailable?e:null}}

@Manofwar32 If we inject this code then is it possible to solve problems for logging non contacts?

MegaMatze commented 2 years ago

And is this solving the problem of logging not working after some time if no activity in web WhatsApp?

rizwansoaib commented 2 years ago

You placed ? Is it questions

rizwansoaib commented 2 years ago

TypeError: Cannot read properties of undefined (reading 'Presence') at :289:34 VM51:451 TypeError: Cannot read properties of undefined (reading 'Chat') at :447:22

After added your code @Manofwar32 .

window.Store.Chat VM16868:1 Uncaught TypeError: Cannot read properties of undefined (reading 'Chat') at :1:14

rizwansoaib commented 2 years ago

I am using WhatsApp Beta version.

halper03 commented 2 years ago

Yes I tried but will try again to find solutions for this.

I've discovered your program very recently. I don't know if this information may help you but I've managed to make the program work, tracking correctly contacts' online statuses and also non contacts being tracked.

To achieve this I'have had to set up a particular configuration:

  1. I use your WA-Mon for Windows version (I mean the .exe version).
  2. I install it on a VirtualBox VM machine, so that I can leave it working in background forever and ever
  3. To track whichever contact I want, I need them to be on the startup WA window (that is, the recent conversations tab)
  4. Finally I created a very simple batch script which loops through the contact list one by one with a 2 seconds delay, so that I keep all tracking connections alive

Considerations:

  • To make a contact appears on Recent Chats Tab (but not letting them to notice), what I do is going offline (airplane mode) on the phone. Then I send any character to a new conversation for every contact I want to track, and finally I use the 'delete for all' option with that message. Then I de-activate airplane mode and go online again.

Doing this I get every contact I want to track to appears on Recent Chats (and I have checked that they don't recieve any message, so they don't notice anything).

Also, doing this, I can bypass the new WhatsApp privacy "protection" they're talking about these days. Apparently, if you try to track someone whom you've never had any conversation before, WA doesn't show you the 'online' status or the 'last seen' info.

Doing the simple step I describe above (for creating a fake 'recent chat' conversation) solves this problem.

  • The Batch Script I use for looping through the contacts is currently a needed process to keep tracking connections alive. I've made several tests and everytime I stopped the loop process, tracking connections were killed in a few minutes. So, as far as I know, WA-Mon doesn't work correctly the way you describe in your site (I mean the requisite of opening a chat before starting tracking). In current WA versions that step is not enough to keep the tracking alive.

EDIT: I forgot to explain how to make 'non contacts' to appear in recent chats. To get this you only need to visit the url https://wa.me/(NUMBER) to open a new chat with that phone number. Being (NUMBER) the phone number of the 'non-contact' person including country code.

Sorry if I extended so much writing, I wanted to explain the working tracking method the best way I can. I hope you may find this information useful for your development.

I've tried. WA Business but it didn't work.

cflowers007 commented 2 years ago

For this to work, does this require installing VirtualBox VM machine? I have 2 phones/phone numbers, both iOS, and am not using WhatsApp Beta nor business.

The second number is brand new, so I haven't messaged anyone on WhatsApp and decided to test this with my other phone number. Although I was able to make my other number appear in the recent chats window, using the offline/airplane method, even when I was clearly online with both numbers, that number never appeared as online

MarcKete commented 2 years ago

Hi Rizwan,

just installed the new windows version, looking really great. Really nice improvement on the interface and functional improvements. I guess it doesn't track the non contacts yet? I tried the good idea (airplane mode) of malaguer (https://github.com/rizwansoaib/whatsapp-monitor/issues/128#issuecomment-1018918239) once, but no luck. I don't know whether this for others work, or maybe it's just me.

If I may, some tiny point for improvement on the windows version:

But for the rest, great work done as well as big thanks to malaguer for his contribution. I you need testers, count me in!!!

rizwansoaib commented 2 years ago

I agree with you for position of online scan unfortunately it's cross platform ( linux , windows, Mac) all and for different devices different screen it's shows different in my laptop linux 14 inch screen it's same height as profile scan but when I switched with windows it's not show as in linux. in next update I will try to fix UI also .

It does not scan complete address mean you will see but not able to track until you open any chat window.

If you need to track anyone you need to open chat window atleast once.

I will add this feature also track specific contact also please create one new issue for both UI and specific contact selection.

Erceccia commented 2 years ago

I tried the good idea (airplane mode) of malaguer (#128 (comment)) once, but no luck. I don't know whether this for others work, or maybe it's just me.

Hi @MarcKete

I've tried the new version today. And in my case (using Windows platform on desktop and Android WhatsApp on the phone) I can confirm that it still works fine for me, even with non contacts.

If you've managed to get a non-contact chat to appear on WhatsApp Recent Chats tab, I'd suggest you to keep that chat there for at least 1 or 2 days at least. I've verified that @rizwansoaib WA-Monitor new version is able to detect non contacts once you start Online Scan Monitor and they're logged correctly.

The ability to see 'online status' is not immediate. In my case, having the recent chat and opening a couple of times for 1 day was time enough to make WhatsApp servers "think" that there is a connection alive between the non-contact and my number and allow me to check the online status.

Please explain, how do I track non contacts? Do I need to send them a message in order to "unlock" their last seen and being able to track? For me is not working