Not sure about desktop clients and not sure about what you mean by "open in the background" in this specific case, but I can answer this for mobile WhatsApp apps specifically. For those, it only tracks when you actually have the app open in your main view.
More specifically, if you just have the app in the background while using some other app, it doesn't count as online. If someone sends you a WhatsApp message and you receive a notification but don't open the app itself, it doesn't count. Only when you actually open the app is when it shows you as being online.
Personally, I agree with you that the simplest solution that would already resolve a ton of those issues is to simply only display your "online" status to those who you have added to your contact list (instead of to literally the entire world).
How does this work - does it leak status or location, messages, contact lists etc? We have a number of folks who are absolutely freaking out over how folks are being killed because of this - can someone walk us through how it leaks all this info?
A quick note that I make my entire calendar public in terms of available times so that folks can schedule their time with me.
I can totally see that happening:
Person X suspects their partner is cheating on them with Person Y. So they start logging every time their partner is online and every time Person Y is online. Person X becomes obsessed with this theory of cheating and discovers a correlation between their online times, concluding that they're being cheated on, so they explode in rage and go kill their partner.
I do agree I don't particularly like that it's on by default.
> Please note you can't hide your online.
https://faq.whatsapp.com/general/chats/about-last-seen-and-o...