How app-based research is navigating the shifting landscape of online privacy and security.