Late to reply, but figure I’d share what I ran into…
For me, it was actually a Java issue. Specifically, I was using the “==” operator to compare 2 Strings (which in Java, compares their reference, NOT their value!). The below is what worked for me…
MobileElement checkbox = (MobileElement) driver.findElementByXPath(“some xpath”);
if (checkbox.getAttribute(“checked”).equals(“false”))