Programming Tech Brief By HackerNoon

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

5 min · 27. maj 2026
episode How I Built an iPhone Theft Detection System Using Motion Sensors and Screen Time APIs cover

Description

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 [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 [https://hackernoon.com/c/programming]. You can also check exclusive content about #mobile-app-development [https://hackernoon.com/tagged/mobile-app-development], #ios-app-development [https://hackernoon.com/tagged/ios-app-development], #swiftui [https://hackernoon.com/tagged/swiftui], #mobile-security [https://hackernoon.com/tagged/mobile-security], #theft-detection-software [https://hackernoon.com/tagged/theft-detection-software], #ios-background-tasks [https://hackernoon.com/tagged/ios-background-tasks], #cmmotionmanager [https://hackernoon.com/tagged/cmmotionmanager], #iphone-security [https://hackernoon.com/tagged/iphone-security], and more. This story was written by: @olegmmv [https://hackernoon.com/u/olegmmv]. Learn more about this writer by checking @olegmmv's [https://hackernoon.com/about/olegmmv] about page, and for more stories, please visit hackernoon.com [https://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.

Comments

0

Be the first to comment

Sign up now and become a member of the Programming Tech Brief By HackerNoon community!

Get Started

1 month for 9 kr.

Then 99 kr. / month · Cancel anytime.

  • Podcasts kun på Podimo
  • 20 lydbogstimer pr. måned
  • Gratis podcasts

All episodes

100 episodes

episode Sort and Uniq — How to Turn Noise Into Signal artwork

Sort and Uniq — How to Turn Noise Into Signal

This story was originally published on HackerNoon at: https://hackernoon.com/sort-and-uniq-how-to-turn-noise-into-signal [https://hackernoon.com/sort-and-uniq-how-to-turn-noise-into-signal]. sort groups, uniq counts. Every flag, the core frequency pipeline, and security patterns for log analysis, IP ranking, password reuse, and list comparison. Check more stories related to programming at: https://hackernoon.com/c/programming [https://hackernoon.com/c/programming]. You can also check exclusive content about #linux [https://hackernoon.com/tagged/linux], #command-line [https://hackernoon.com/tagged/command-line], #bash [https://hackernoon.com/tagged/bash], #cybersecurity [https://hackernoon.com/tagged/cybersecurity], #penetration-testing [https://hackernoon.com/tagged/penetration-testing], #log-analysis [https://hackernoon.com/tagged/log-analysis], #security-tools [https://hackernoon.com/tagged/security-tools], #ethical-hacking [https://hackernoon.com/tagged/ethical-hacking], and more. This story was written by: @RoshanRajbanshi_frqj97tc [https://hackernoon.com/u/RoshanRajbanshi_frqj97tc]. Learn more about this writer by checking @RoshanRajbanshi_frqj97tc's [https://hackernoon.com/about/RoshanRajbanshi_frqj97tc] about page, and for more stories, please visit hackernoon.com [https://hackernoon.com]. sort and uniq are the tools that turn raw terminal output into something you can actually act on — sort groups and orders lines, uniq deduplicates and counts them, and together they power the frequency analysis pipeline that shows up in almost every security workflow. This article covers every flag, fixes a common misconception about list comparison, and walks through real patterns for log analysis, credential hunting, and ranked output.

6. juni 202612 min
episode Your AI Chat Will Break in Production: 3 Lifecycle Bugs Nobody Warns You About artwork

Your AI Chat Will Break in Production: 3 Lifecycle Bugs Nobody Warns You About

This story was originally published on HackerNoon at: https://hackernoon.com/your-ai-chat-will-break-in-production-3-lifecycle-bugs-nobody-warns-you-about [https://hackernoon.com/your-ai-chat-will-break-in-production-3-lifecycle-bugs-nobody-warns-you-about]. Your AI chat works in dev and breaks in prod. Three React lifecycle bugs in LLM streaming — stale closures, lost tokens, background kills — and how to fix them Check more stories related to programming at: https://hackernoon.com/c/programming [https://hackernoon.com/c/programming]. You can also check exclusive content about #react [https://hackernoon.com/tagged/react], #react-native [https://hackernoon.com/tagged/react-native], #llm [https://hackernoon.com/tagged/llm], #streaming [https://hackernoon.com/tagged/streaming], #ai-streaming [https://hackernoon.com/tagged/ai-streaming], #websocket-chat [https://hackernoon.com/tagged/websocket-chat], #stream-lifecycle [https://hackernoon.com/tagged/stream-lifecycle], #mobile-streaming [https://hackernoon.com/tagged/mobile-streaming], and more. This story was written by: @alexrixten [https://hackernoon.com/u/alexrixten]. Learn more about this writer by checking @alexrixten's [https://hackernoon.com/about/alexrixten] about page, and for more stories, please visit hackernoon.com [https://hackernoon.com]. TL;DR: A stream and React are two different lifecycles — fail to sync them and your AI chat breaks silently in prod. Three fixes: (1) Stream Identity — unique ID per stream, every callback checks if it's still current; (2) Explicit Cleanup — close the connection, mark the chat stale, force-fetch on return; (3) Resume, not restart — pick the stream up from a sequence cursor instead of regenerating. Underlying rule: push-based data shouldn't live in React state directly.

6. juni 202613 min
episode Design Engineering is the New Product Design artwork

Design Engineering is the New Product Design

This story was originally published on HackerNoon at: https://hackernoon.com/design-engineering-is-the-new-product-design [https://hackernoon.com/design-engineering-is-the-new-product-design]. Check more stories related to programming at: https://hackernoon.com/c/programming [https://hackernoon.com/c/programming]. You can also check exclusive content about #web-design [https://hackernoon.com/tagged/web-design], #design-engineering [https://hackernoon.com/tagged/design-engineering], #ai-design-tools [https://hackernoon.com/tagged/ai-design-tools], #storybook [https://hackernoon.com/tagged/storybook], #figma-mcp [https://hackernoon.com/tagged/figma-mcp], #ai-workflows [https://hackernoon.com/tagged/ai-workflows], #design-handoff [https://hackernoon.com/tagged/design-handoff], and more. This story was written by: @jinson [https://hackernoon.com/u/jinson]. Learn more about this writer by checking @jinson's [https://hackernoon.com/about/jinson] about page, and for more stories, please visit hackernoon.com [https://hackernoon.com].

5. juni 202612 min
episode How We Detect iOS App Launch Regressions Before Release Using XCUITests artwork

How We Detect iOS App Launch Regressions Before Release Using XCUITests

This story was originally published on HackerNoon at: https://hackernoon.com/how-we-detect-ios-app-launch-regressions-before-release-using-xcuitests [https://hackernoon.com/how-we-detect-ios-app-launch-regressions-before-release-using-xcuitests]. How inDrive built iOS launch performance tests with XCUITests, CI, Slack alerts, and slow-network simulation to catch regressions before release. Check more stories related to programming at: https://hackernoon.com/c/programming [https://hackernoon.com/c/programming]. You can also check exclusive content about #ios-app-development [https://hackernoon.com/tagged/ios-app-development], #ios-development [https://hackernoon.com/tagged/ios-development], #mobile-app-performance [https://hackernoon.com/tagged/mobile-app-performance], #mobile-app-testing [https://hackernoon.com/tagged/mobile-app-testing], #ios-app-performance [https://hackernoon.com/tagged/ios-app-performance], #software-testing-automation [https://hackernoon.com/tagged/software-testing-automation], #xcuitest-driver [https://hackernoon.com/tagged/xcuitest-driver], #good-company [https://hackernoon.com/tagged/good-company], and more. This story was written by: @indrivetech [https://hackernoon.com/u/indrivetech]. Learn more about this writer by checking @indrivetech's [https://hackernoon.com/about/indrivetech] about page, and for more stories, please visit hackernoon.com [https://hackernoon.com]. After a production launch regression made startup time reach almost eight seconds for some users, inDrive’s iOS platform team built automated launch performance tests with XCUITests. The system runs nightly on CI, uses real test accounts and production-like flows, sends metrics to internal storage, and alerts engineers in Slack when startup time crosses the threshold. Later, the team added slow-network simulation to catch cache-related regressions that only appear under unstable connections. As a result, launch performance issues are now detected in develop before they reach users

5. juni 202611 min
episode Best Stock APIs in 2026: A Developer’s Guide to Market Data, AI Agents, and Financial Apps artwork

Best Stock APIs in 2026: A Developer’s Guide to Market Data, AI Agents, and Financial Apps

This story was originally published on HackerNoon at: https://hackernoon.com/best-stock-apis-in-2026-a-developers-guide-to-market-data-ai-agents-and-financial-apps [https://hackernoon.com/best-stock-apis-in-2026-a-developers-guide-to-market-data-ai-agents-and-financial-apps]. We’ll compare the major stock API providers in 2026 through developer workflows, product requirements, and AI readiness, not just feature lists. Check more stories related to programming at: https://hackernoon.com/c/programming [https://hackernoon.com/c/programming]. You can also check exclusive content about #programming [https://hackernoon.com/tagged/programming], #api [https://hackernoon.com/tagged/api], #technology [https://hackernoon.com/tagged/technology], #finance [https://hackernoon.com/tagged/finance], #data-science [https://hackernoon.com/tagged/data-science], #stock-apis [https://hackernoon.com/tagged/stock-apis], #best-stock-apis-in-2026 [https://hackernoon.com/tagged/best-stock-apis-in-2026], #good-company [https://hackernoon.com/tagged/good-company], and more. This story was written by: @nikhiladithyan [https://hackernoon.com/u/nikhiladithyan]. Learn more about this writer by checking @nikhiladithyan's [https://hackernoon.com/about/nikhiladithyan] about page, and for more stories, please visit hackernoon.com [https://hackernoon.com]. Once a stock API powers a dashboard, screener, backtester, fintech app, or AI agent, it stops being a simple data source. It becomes part of the product’s infrastructure.

4. juni 202614 min