Thamizhi Studios

Foreground Service Usage

This page explains why PeaceBreak declares foreground services and provides short demo videos for review.

Declared type: FOREGROUND_SERVICE_MEDIA_PLAYBACK

Media playback

PeaceBreak plays audio (music and ambient sounds). When audio is playing or paused, the app runs a media playback foreground service to keep playback stable and to show a persistent system media notification with play/pause/next/previous controls. The notification is visible only while playback is active or paused and is dismissed when playback stops. No video, no PiP, no ads.

Direct video link

Policy-compliant background behavior

Shake‑to‑Play and scheduled events

PeaceBreak does not declare restricted foreground service types for background sensors or alarms on Android 14/15. Shake‑to‑Play runs with a persistent notification when enabled, and media playback uses FOREGROUND_SERVICE_MEDIA_PLAYBACK only while audio is playing or paused.

Due to Android power optimizations (Doze/App Standby) and inexact scheduling, PeaceBreak alarms and sleep timers may start/stop with a small delay (typically a few seconds). No exact alarms are used.

Manifest alignment: mediaPlayback → TrackPlayer service during playback; no dataSync declared; ShakeDetectionService runs as a normal service.