Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only working if you're actively using/on WhatsApp #145

Closed
cflowers007 opened this issue Jan 29, 2022 · 26 comments
Closed

Only working if you're actively using/on WhatsApp #145

cflowers007 opened this issue Jan 29, 2022 · 26 comments

Comments

@cflowers007
Copy link

cflowers007 commented Jan 29, 2022

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)
@rainbowtux
Copy link

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

Smartphone: Android 10

@MegaMatze
Copy link

Also for me on Ubuntu Firefox and windows Chrome

@rizwansoaib
Copy link
Owner

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)

@rizwansoaib
Copy link
Owner

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

@rizwansoaib
Copy link
Owner

rizwansoaib commented Feb 11, 2022

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.

@rizwansoaib
Copy link
Owner

rizwansoaib commented Feb 11, 2022

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.

@rizwansoaib
Copy link
Owner

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

@Tarumahr
Copy link

Tarumahr commented Feb 15, 2022

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.

@rizwansoaib
Copy link
Owner

rizwansoaib commented Feb 15, 2022 via email

@cflowers007
Copy link
Author

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!

@rizwansoaib
Copy link
Owner

rizwansoaib commented Feb 21, 2022 via email

@cflowers007
Copy link
Author

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!!

@rizwansoaib
Copy link
Owner

rizwansoaib commented Feb 28, 2022

  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.

@rizwansoaib
Copy link
Owner

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

@rizwansoaib
Copy link
Owner

rizwansoaib commented Feb 28, 2022

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

@LouisXIVLouis
Copy link

LouisXIVLouis commented Mar 29, 2022

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

@rizwansoaib
Copy link
Owner

@LouisXIVLouis Thanks for update

@rizwansoaib
Copy link
Owner

#176 Mouse Jiggler

@cflowers007
Copy link
Author

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

@rizwansoaib rizwansoaib pinned this issue Jul 4, 2022
@rizwansoaib
Copy link
Owner

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

@ANKAMAM
Copy link

ANKAMAM commented Jan 5, 2023

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

@SignorPollito
Copy link

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

@ANKAMAM
Copy link

ANKAMAM commented Jan 26, 2023

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

@SignorPollito
Copy link

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

@ANKAMAM
Copy link

ANKAMAM commented Jan 26, 2023

i check it this is not whatsapp monitor extention

@rizwansoaib
Copy link
Owner

rizwansoaib commented Oct 13, 2024

Anyone can buy hardware also to move mouse automatically

USB mouse jiggler

rizwansoaib added a commit that referenced this issue Nov 3, 2024
i hope #223 #216 #145 Fixed issue
rizwansoaib added a commit that referenced this issue Nov 10, 2024
Fixed bug and improvements
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants