rizwansoaib/whatsapp-monitor

Only working if you're actively using/on WhatsApp

cflowers007 opened this issue ยท 25 comments

Describe the bug
As of a few days ago, I've noticed that the extension only logs online activity if you're actively using WhatsApp. I verified this by comparing the time I was last active on Whatsapp with the time the extension last logged online activity, and the time stamps are an exact match.

I've also noticed that if you're only monitoring one number and that specific chat isn't the one that's open in WA Web, the extension doesn't log anything.

To Reproduce
Steps to reproduce the behavior:

  1. Go to WA Web, make sure you've activated the extension so that you're monitoring a number
  2. Note the time or time period when you're not actively using WhatsApp (whether on phone or computer)
  3. Go to dashboard and confirm that the extension didn't log online history during the time period when you weren't using WhatsApp
  4. Start using WhatsApp, see the number being monitored go online/offline
  5. Go back to dashboard, where you'll see that this recent online history, while you were actively using WhatsApp was logged

Expected behavior
Online behavior should be logged regardless of whether you're active on Whatsapp or not.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: macOS Big Sur Version 11.6.3
  • Browser: Chrome
  • Version : 97.0.4692.99 (Official Build) (arm64)

Smartphone (please complete the following information):

  • Device: iPhone 13 Pro
  • OS: 15.2
  • WhatsApp version 2.22.2.76 (not part of beta)

Same for me.
Desktop: Firefox 95.0.2 on Linux
Version: 2.7 (latest release)

Smartphone: Android 10

Also for me on Ubuntu Firefox and windows Chrome

i have tested with pyautogui its working you can move mouse with script.

import pyautogui as pg
while 1:
pg.moveTo(1500, 350, duration = 1)
pg.moveTo(1500, 300, duration = 1)

Above are python based if you want js there is robotjs.

You need to move according to your screen size and before debug don't try to run in infinite loop while 1.

move just one place to other place in whatsapp web.

I tried to built in feature for moving mouse but Chrome does not provide in extension so for moving mouse os system programming required so you can do according to your need it will just 4 lines code in python.

or i will try to build a tool specially for auto move mouse in whatsapp web in Tkinter or any other framework.

I am not free now so it will take time so if anyone want to build this raise PR I will merge.

Thank You

Similiar problem here. If the main windows are minimized, the monitoring doesn't work at all. Tested more times. Please fix that :(
OS: Win 10 Pro 21H2
App: EXE launcher (Beta multi-device)

@rizwansoaib #145 EDIT: DEBUG HERE: Fix is done with NON-beta device (I have to test with "beta" too.)
Win10Pro x64 21H2 - EXE 1.4
The monitoring mode it's working. How?

  1. Set the WA device in a single device mode (old mode, non-beta);
  2. Start monitoring after setting the contacts to monitor (you have to put a chat in the main windows);
  3. You CAN minimize the "monitoring GUI";
  4. You CAN'T minimize the "main GUI" (WA);
  5. You CAN put the "main GUI" in the background (so you can use other apps, just don't minimize WA main GUI);

SUGGESTIONS:

  1. Let us choose WHO to track, selecting the number or the contact;
  2. Let us choose if having a MINIMAL AND SIMPLE MONITORING GUI (less performance impact; too heavy right now - especially from to 1.3 to 1.4 update)
  3. A Good Updated tutorial for "random people" can be useful;
  4. Simplify how to download the updated .exe file...(actually I have to change page more times and switch website);
  5. Update pages; Some of them are old and tell ".exe are not supported anymore"

@rizwansoaib Thanks for your hard work, mate.

pyautogui

import pyautogui as pg
while 1:
pg.moveTo(1500, 350, duration = 1)
pg.moveTo(1500, 300, duration = 1)

You need to move according to your screen size and before debug don't try to run in infinite loop while 1.

move just one place to other place in whatsapp web.

Could you edit your script to show how to not run in infinite loop while 1? For example, my screen size is 2560 x 1600, so after installing PyAutoGUI, what script could I run so I'm moving the mouse from out place to another?

Sorry for such a beginner request, but I'm not sure if changing while 1: to while 2: would be the solution or what I'd have to change/add.

Thank you!

How? :) Would it be possible for you to provide an example script so I replicate it for myself? From the script you provided, what would need to changed/added? My screen size is 2560 x 1600

import pyautogui as pg
while 1:
pg.moveTo(1500, 350, duration = 1)
pg.moveTo(1500, 300, duration = 1)

And how do you stop or pause the script so I can use my computer?

Thanks so much!!

  1. Download python3 and install pip also
  2. Install pyautogui package ( in terminal-> pip3 install pyautogui)
  3. Create script.py file and paste code 1500 is x coordinate and 350 is y coordinate of your screen you can edit as your running program and screen.

To stop script just move cursor to any corner of screen quickly script will stop

You can watch some pyautogui tutorial on YouTube for more details and information.

Using Chromium on Raspbian now. Couldn't get pyautogui to work on Ubuntu.
I found I needed to click also.
If you use relative movement of the mouse you can position it anywhere you need after launching the script and you don't need to know your screen size.

import pyautogui
import time
while 1:
pyautogui.moveRel(25, 0, duration=1)
pyautogui.moveRel(0, 25, duration=1)
pyautogui.moveRel(-25, 0, duration=1)
pyautogui.moveRel(0, -25, duration=1)
pyautogui.click()
time.sleep(60)

Edited 29/03 "Chromium" instead of "Chrome". Extension V2.7 seems to work fine

@LouisXIVLouis Thanks for update

#176 Mouse Jiggler

Mac users can download Jiggler that's easy to use, free, and works perfectly: (http://www.sticksoftware.com/software/Jiggler.html )

https://github.com/bhaller/Jiggler

wss://web.whatsapp.com/ws/chat?ED=CAgIAg
if we try to connect websocket again it got disconnected again in 10sec
even after open websocket connection not worked

hi rizwan is there anyway to work wa online or offline app you know wa last update is not good for us
how can we do this
is it possible to buy api

To fix this, if you are on FireFox, you can just install the extension:
https://add0n.com/always-active.html

I tried this and it's good, event if I'm not in the tab and using other applications it works

Hello there

Is this whatsapp online offline tracker solution?

To fix this, if you are on FireFox, you can just install the extension: https://add0n.com/always-active.html

I tried this and it's good, event if I'm not in the tab and using other applications it works

Hello there

Is this whatsapp online offline tracker solution?

To fix this, if you are on FireFox, you can just install the extension: https://add0n.com/always-active.html

I tried this and it's good, event if I'm not in the tab and using other applications it works

I have tested it all the day and the answers is yes, but also no.

It seems to work, but after some time it stops working and you have to go on the tab again, so you can't leave it for a long time, but it's still useful if you are on the PC and you can sometime click the tab

i check it this is not whatsapp monitor extention