Skip to Content
Platform.Ontology

Foreground service

Lets the app run long tasks with a visible notification.

Works without askingNotifications and backgroundBackground workAndroid and iPhoneIn the background

In one line

Can run long tasks on Android with a visible notification, but only for a stated purpose

Lets the app run long tasks with a visible notification.

A visible, user-aware background task such as navigation or a call. Types and time limits keep abuse in check.

What it can and can't do

What the user does: You start something long, like a download, a workout or a file sync

It can

  • Keep a long task going while the app is closed, with a notification showing
  • Declare a type such as media, location or data sync, as Android 14 requires
  • Use a new user started task on iPhone in iOS 26

It cannot

  • Run a data sync or media processing service past about 6 hours in 24 on Android 15
  • Start one from the background in many cases; Android restricts that
  • Run freely on iPhone, which allows only set background modes

How it differs between platforms: Android has foreground services with a notification. iPhone limits background work to set modes, plus user started processing in iOS 26.

On Android and iPhone

AndroidiPhone
StatusSupportedPartial
First versionAndroid 9 (API 28)iOS 13
Permission or entitlementFOREGROUND_SERVICE plus FOREGROUND_SERVICE_<TYPE> (API 34)UIBackgroundModes, BGTaskScheduler, ActivityKit
Protection levelnormalnone
How access is grantedinstallnone
What the user seesNone; notification shownNone
How long it lastsNot revocable; user can stop from Task Managern/a
How to take it backSettings > Task Manager or notificationn/a
Store policyPlay: Foreground service types declaration required for apps targeting 14+; April 2026 preview removes geofencing as approved use effective Aug 26, 2026App Review 2.5.4: background modes only for relevant features
APIService.startForeground with typeBGTaskScheduler, BGContinuedProcessingTask (iOS 26), Live Activities
NotesAndroid 14 requires a type; Android 15 dataSync and mediaProcessing limited to about 6 hours in 24; starting from background restricted since Android 12.iOS limits background execution to defined modes; iOS 26 adds user-initiated continued processing.

Data you get

What comes back: Foreground service run
Shape: event
How often: duration

FieldTypeUnitRangePrecision
timeoutintegerhours6 for dataSyncper 24 hours

Technical limits

  • Visible notification required
  • Types gate use cases

The story

What it is

Lets an app run a long task in the background while showing a visible notification.

For you

You see a notification while an app is doing something long, like navigating or recording. It is the sign the app is allowed to keep going.

For makers

Makers use it for calls, navigation and fitness. Android requires a type and limits time so it is not a hiding place.

Where you see it

TypeExampleApps
mapsA navigation app keeps giving directions with the screen off.Google Maps, Waze
fitnessA run tracker keeps recording your route while you check messages.Strava
messagingA call keeps going after you leave the app.WhatsApp
musicA player keeps playing in your pocket.Spotify
gamesA game download or a cloud stream continues while you do something else.Xbox Cloud Gaming
smart-homeA security app keeps a camera feed ready for alerts.None named
mediaA screen recorder keeps capturing a live stream.None named

Risks

  • Can hide long running work
  • Battery drain

Android and iPhone in short

  • Android: Android 14 needs a type. Android 15 limits data sync to about 6 hours in 24.
  • iPhone: iOS only allows background modes. iOS 26 adds user started continued processing.

What the platform says

Good uses and abuse

Legitimate uses

  • Navigation
  • Calls
  • Fitness

Known abuse

  • Hidden persistence

Scores

ScoreValueMeaning
Sensitivity2 of 5How revealing the data is
Utility4 of 5How useful it is to honest apps
Friction1 of 5How much the user has to do
Fingerprint bitsNot ratedRough identifying entropy, when known

A real example: LinkedIn

Exodus snippets show FOREGROUND_SERVICE (4.1.637) and FOREGROUND_SERVICE_MICROPHONE (4.1.995) in the LinkedIn manifest. What feature drives it is not documented; voice recording in messages is the likely driver (inferred).

History

  • 2021-10, Android 12 (API 31): Foreground services cannot be started from background with exceptions
  • 2023-10, Android 14 (API 34): Foreground service types and matching permissions required
  • 2023-10, Android 14 (API 34): Typed foreground services required with matching permission
  • 2024-09, Android 15 (API 35): Time limits for dataSync and mediaProcessing
  • Wake lock. Can keep your phone's processor awake on Android, or the screen on iPhone
  • Run at startup. Can start itself in the background after your Android phone restarts
  • Microphone. Can listen through your microphone while in use, after you tap Allow

Sources

How well checked: Based on official documentation.

On this page