Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
freem
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Openai/691a5ca1-2b1c-8010-8cbd-8797f95aa8d9
(section)
Add languages
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==== Key truths: ==== * CMMotionActivityManager.startActivityUpdates does not wake a suspended/terminated app. It only delivers events while your process is actually running (foreground or kept alive by some background mode).Apple Developer<ref>{{cite web|title=Apple Developer|url=https://developer.apple.com/documentation/coremotion/cmmotionactivitymanager/startactivityupdates%28to%3Awithhandler%3A%29|publisher=Apple Developer|access-date=2025-11-17}}</ref> * Core Motion history (via queryActivityStarting(from:to:to:withHandler:)) can be queried when your app is brought back, giving you up to 7 days of activity segments (including .automotive).devfright.com<ref>{{cite web|title=devfright.com|url=https://www.devfright.com/how-to-use-the-cmmotionactivitymanager/|publisher=devfright.com|access-date=2025-11-17}}</ref> * BGTaskScheduler (BGAppRefreshTask, BGProcessingTask) gives you opportunistic wake-ups, not “wake me right at hour 4 of driving” precision. iOS decides when to run your task based on usage, power, etc.Apple Developer<ref>{{cite web|title=Apple Developer|url=https://developer.apple.com/documentation/backgroundtasks/bgtaskscheduler|publisher=Apple Developer|access-date=2025-11-17}}</ref> * Background modes (Location, Audio, VoIP, etc.) are heavily scoped. Apple expects you to actually be doing that foregroundly-reasonable use case (navigation, fitness tracking, turn-by-turn, etc.). Misusing them just to keep the app alive is very likely to get flagged.Apple Developer<ref>{{cite web|title=Apple Developer|url=https://developer.apple.com/documentation/xcode/configuring-background-execution-modes|publisher=Apple Developer|access-date=2025-11-17}}</ref> * Even with the newer “continued processing” style APIs in iOS 26, Apple is focused on user-initiated, bounded tasks (exports, uploads, etc.), not open-ended sensing like “watch for 4 hours of future driving”.Apple Developer<ref>{{cite web|title=Apple Developer|url=https://developer.apple.com/videos/play/wwdc2025/227/|publisher=Apple Developer|access-date=2025-11-17}}</ref> So: : Your current manual Start/Stop approach is actually very in line with what Apple wants: user-initiated, explicit, and bounded.
Summary:
Please note that all contributions to freem are considered to be released under the Creative Commons Attribution-ShareAlike 4.0 (see
Freem:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)