How I Built an iPhone Theft Detection System Using Motion Sensors and Screen Time APIs episode artwork

EPISODE · May 27, 2026 · 5 MIN

How I Built an iPhone Theft Detection System Using Motion Sensors and Screen Time APIs

from Programming Tech Brief By HackerNoon · host HackerNoon

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.

Episode metadata supplied by the publisher feed · Published May 27, 2026

Embed this episode

NOW PLAYING

How I Built an iPhone Theft Detection System Using Motion Sensors and Screen Time APIs

0:00 5:23

No transcript for this episode yet

We transcribe on demand. Request one and we'll notify you when it's ready — usually under 10 minutes.

No similar episodes found.

No similar podcasts found.

Frequently Asked Questions

How long is this episode of Programming Tech Brief By HackerNoon?

This episode is 5 minutes long.

When was this Programming Tech Brief By HackerNoon episode published?

This episode was published on May 27, 2026.

Can I download this Programming Tech Brief By HackerNoon episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.
URL copied to clipboard!