Q
|
When using popup detection on Android devices, the tab is not closed after the test and presents a blank screen to the user, with the browser hawk test results hidden on the tab behind. How can we resolve this?
|
A
|
This is due to how Android devices handle popups. The workaround is to omit popup detection for Android devices, like so:
pseudo-code:
if bh.OSName = "Android" then
extended properties to check = "a, b, c, d"
else
extended properties to check = "a, b, c, d, BlockedPopups"
end if
Then in your logic where you do something based on popups being blocked, you would add a condition that if it is Android you would need to make an assumption about whether they are blocked or not based on what you think is the most popular setting for your particular user base. So although you cannot then detect blocked popups, you can at least prevent the window/tab issue, while still having the blocked popup detection for other scenarios (outside of Android).
|