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

Declared type: FOREGROUND_SERVICE_DATA_SYNC

Background sensor monitoring (Shake‑to‑Play) and timed events

When users enable Shake‑to‑Play, the app runs a lightweight foreground service with a persistent notification that reads the accelerometer to detect a deliberate shake gesture and trigger playback. The same service briefly handles user‑initiated timed events like the sleep timer or PeaceBreak reminders by posting app events. No backup/restore, no media transcoding, no file import/export, no location, no analytics, no ads.

Direct video link

Exact alarms are not used. The app relies on inexact scheduling with Android‑compatible fallbacks.

Manifest alignment: mediaPlayback → TrackPlayer service; dataSync → ShakeDetectionService.