# How I Built an iPhone Theft Detection System Using Motion Sensors and Screen Time APIs Page: https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125/how-i-built-an-iphone-theft-detection-system-using-motion-sensors-and-screen-time-apis Text version: https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125/how-i-built-an-iphone-theft-detection-system-using-motion-sensors-and-screen-time-apis.md Podcast: [Programming Tech Brief By HackerNoon](https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125) Published: 2026-05-27T16:00:37+00:00 Episode link: https://share.transistor.fm/s/7dbf9da5 Audio file: https://media.transistor.fm/7dbf9da5/0a63dfca.mp3 Processing state: not_requested JSON: https://stenobird.com/v1/public/podcasts/programming-tech-brief-by-hackernoon-6364125/episodes/how-i-built-an-iphone-theft-detection-system-using-motion-sensors-and-screen-time-apis Duration seconds: 323 ## Resource This story was originally published on HackerNoon at: https://hackernoon.com/how-i-built-an-iphone-theft-detection-system-using-motion-sensors-and-screen-time-apis . How I built phone snatch detection for iOS using accelerometer, Screen Time API, and a background location hack. No ML, no hardware. Check more stories related to programming at: https://hackernoon.com/c/programming . You can also check exclusive content about #mobile-app-development , #ios-app-development , #swiftui , #mobile-security , #theft-detection-software , #ios-background-tasks , #cmmotionmanager , #iphone-security , and more. This story was written by: @olegmmv . Learn more about this writer by checking @olegmmv's about page, and for more stories, please visit hackernoon.com . Android shipped Theft Detection Lock in 2024. Apple still has nothing. I built a free iOS app that detects phone grabs via accelerometer and locks selected apps using Screen Time shields. The technical rabbit holes: CMMotionActivityManager turned out useless (reports "Unknown" instead of "Running"), background execution requires a location manager hack to keep the process alive, Screen Time API has two token types you need to apply simultaneously, and Face ID can't be called from shield extensions. The app works but has one structural weakness – deleting it removes the shields. ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/programming-tech-brief-by-hackernoon-6364125/episodes/how-i-built-an-iphone-theft-detection-system-using-motion-sensors-and-screen-time-apis/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/programming-tech-brief-by-hackernoon-6364125/how-i-built-an-iphone-theft-detection-system-using-motion-sensors-and-screen-time-apis.md` — Read the agent-friendly Markdown representation of this episode resource. A page view does not enqueue transcription. Agents should invoke `request_transcript` explicitly when they need this episode processed. ## Transcript Full transcripts are not published on public pages unless there is a clear rights basis.