Apple just gave an ultimatum to app developers: Quit snooping on our customers or get kicked off the iPhone.

In the latest push in Apple’s widening campaign for digital privacy, the tech giant is cracking down on apps that secretly use screen-recording code in order to track user activity on the iPhone and other Apple gadgets on the mobile iOS platform.

The move comes after TechCrunch reported that mobile apps for companies like Expedia and Hotels.com used an analytics tool to record user activity without asking their permission.The companies say the tool was designed to help them improve their apps by identifying problem areas that users encounter. But it also captured sensitive information such as passwords and credit card numbers.

“Protecting user privacy is paramount in the Apple ecosystem,” Apple told TechCrunch following the investigation. “Our App Store Review Guidelines require that apps request explicit user consent and provide a clear visual indication when recording, logging, or otherwise making a record of user activity.”

Apps found to be in violation of Apple’s privacy agreement have been given less than 24 hours to eliminate the screen-recording code, lest they be yanked from the App Store altogether.

[Read more]