Skip to content

[BUG] Playback stops in background when notification fails to reattach after exiting PiP #264

@EULArule

Description

@EULArule

Describe the Bug

Video playback stops in the background when the app fails to reattach the Android notification service after exiting pop-up mode.

Steps to Reproduce

  1. Open Flow and navigate to a video.
  2. Start playback.
  3. Swipe up to go to the home screen (video enters pop-up mode).
  4. Tap the video to return to fullscreen.
    • The playback notification does not reattach.
  5. Turn off the phone screen while the video is playing.
  6. Wait ~30+ seconds, and playback will stop.
Flow-notification-bug.mp4

Expected Behavior

Video should continue playing seamlessly in the background with an active playback notification.

Actual Behavior

Playback stops after ~30 seconds, and audio is lost.
When the phone is turned back on and unlocked, the buffer appears empty but quickly refills, and playback can resume.

Environment

Field Value
Device Pixel 9a
Android Version Android 16
Flow Version v2.0.5 (14)
Installation Source Droidify APK
ROM Custom Graphene OS 2026040301

Frequency

Every time

Affected Area

  • Video playback
  • Music player
  • Home feed / Recommendations
  • Search
  • Downloads
  • Subscriptions
  • Playlists
  • Picture-in-Picture / Background playback
  • Notifications
  • Settings / Preferences
  • Import / Export
  • Casting
  • SponsorBlock / DeArrow
  • Lyrics / Subtitles
  • UI / Theming
  • Performance / Battery
  • Other (describe below)

Logs (Optional but Helpful)

Click to expand logs 04-10 18:49:52.705 6956 6956 I wm_on_top_resumed_lost_called: [Token=208788050,Component Name=io.github.aedev.flow.IconFlowRed,Reason=topStateChangedWhenResumed] 04-10 18:49:53.238 6956 6956 I wm_on_paused_called: [Token=208788050,Component Name=io.github.aedev.flow.IconFlowRed,Reason=performPause,time=0ms] 04-10 18:49:53.252 6956 6956 D VRI[IconFlowRed]: visibilityChanged oldVisibility=true newVisibility=false 04-10 18:49:53.270 6956 6956 I surfaceview_callback: [window=SV[25154485 IconFlowRed],callback=surfaceDestroyed] 04-10 18:49:53.270 6956 6956 D EnhancedVideoPlayer: Surface destroyed for video VGyqS6ijiak

Additional Context

Tried reinstalling, and also tried setting player mode to allow background. All of which made no difference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcompletedFeature is fully implemented

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions