Skip to content

Custom Foreground Service Icon for Android #820

@mschoi-ian

Description

@mschoi-ian

Feature Request

Thank you for all the great work!

It would be awesome if it could support a custom foreground service icon for Android. If a bundled image path (e.g., ./assets/notification-icon.png) is provided, the notification could use that instead.

The current default one:
Image

Example (app.json):

{
  "plugins": [
    [
      "react-native-audio-api",
      {
        "androidPermissions": [
          "android.permission.MODIFY_AUDIO_SETTINGS",
          "android.permission.FOREGROUND_SERVICE",
          "android.permission.FOREGROUND_SERVICE_MEDIA_PLAYBACK"
        ],
        "androidForegroundService": true,
        "androidFSTypes": [
          "mediaPlayback"
        ],
        "androidForegroundServiceIcon": "./assets/notification-icon.png"
      }
    ]
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions