When I set my user agent string to "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393" and then load the "[login to view URL]" website it works for the first time (showing QR). However, when I restart my app it then starts redirecting to the mobile site every time I try to access https://web.whatsapp.com.
I need a permanent solution to have the WebView navigate safely to [login to view URL] without redirecting me.
- I can open [login to view URL] desktop site (the one with the QR code) in my Android WebView with the above mentioned user agent string
- as soon as I stop the app and launch it again it redirects me to the mobile site
- I need the desktop site after every app launch