Whatsapp enabled whatsapp web for ios. I reviewed the whatsapp web on ios, it works well but how? I turned off background app refresh, then closed the whatsapp app. Then I tried to use whatsapp web and it worked well. When I disabled the internet connection of my iPhone, whatsapp web said "your phone connection lost" How whatsapp did know this? How whatsapp works in background even when it's closed?
Regarding how it works even when WhatsApp is closed from the multitasking screen, it is likely taking advantage of iOS 8's support for the new VoIP push messaging service.
https://developer.apple.com/library/prerelease/ios/documentation/Performance/Conceptual/EnergyGuide-iOS/OptimizeVoIP.html
Note how "In the past ... if a user quit the VoIP app, calls from the server could no longer be received" but with the new method "Your app is automatically relaunched if it’s not running when a VoIP push is received."
WhatsApp now offers VoIP calling in its app, so it does have legitimate use of these types of push messages. Whether it's considered an abuse of the VoIP push message privilege to start the app in the background, not for a call but to sync messages to the web, I'm unsure of, but this certainly seems the most likely explanation for how it manages it.
Just guessing too, but surely it has to be with silent push notification method to wake up the app and exchange some data with the web client API, I'm waiting for more technical details about this mechanism, it seems to be very useful for any other applications and use cases
ADDED INFO:
I've been investigating a little bit more about it, and that's what I've found:
The more interesting thing here is how the app is able to keep the connection alive even when the app is strictly closed (throwing it out from the multitask screen). It seems like some kind of special permission has been granted from Apple to this app in order to allow this behavior, AFAIK currently there is no documented way to achieve this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With