Lore

Indirect Signal Detection Workaround

# Indirect Signal Detection Workaround

An engineering technique for inferring a device-level event when no official platform API exposes it directly: look for a correlated signal the OS does expose, and use it as a proxy.

Snap's original example: early iOS had no API to detect screenshots. Snap engineers noticed that during a hold-to-view gesture, a screenshot correlates with the touch event showing the finger losing contact with the screen mid-hold — and used that touch-state change as a proxy signal to detect the screenshot and notify the sender.

General pattern: when a platform lacks an official signal for a behavior you need to detect, look for an indirect, correlated device event you can observe instead.

Example: Snapchat Screenshot Detection

Early Snapchat's screenshot detection wasn't built on an official Apple API — none existed. Evan Spiegel and Bobby Murphy noticed they could infer a screenshot indirectly: a touch event showing the user's finger losing contact with the screen mid-hold (the physical gesture of pressing the screenshot buttons) was enough of a signal to infer a screenshot had likely just been taken, triggering a notification to the sender. It's a concrete early example of building a detection mechanism out of an incidental signal the platform exposes, rather than a purpose-built API.