Skip to content

android.app.RemoteServiceException$CannotPostForegroundServiceNotificationException: Bad notification for startForeground #545

@Anderzzon

Description

@Anderzzon

6.1.1

Environment

  • Android

Describe the bug

I have activated background recording according to this guide:
https://github.com/llfbandit/record/blob/master/doc/bg_recording.md

But when I start a recording on an Android device it immediately crashes and gives the error message:
android.app.RemoteServiceException$CannotPostForegroundServiceNotificationException: Bad notification for startForeground.

Currently I need to use flutter_foreground_task to record in background on Android devices.

To Reproduce

Start a recording on Android with an AndroidService in the AndroidRecordConfig.

Expected behavior

App not crashing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions