Skip to content

Commit

Permalink
fix: notification logo not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
Dr-Blank committed Oct 1, 2024
1 parent 3400b72 commit 69fcb91
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions android/app/src/main/res/raw/keep.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools"
tools:keep="@drawable/ic_stat_logo" />
6 changes: 3 additions & 3 deletions lib/features/player/core/init.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Future<void> configurePlayer() async {
await JustAudioBackground.init(
androidNotificationChannelId: 'com.vaani.bg_demo.channel.audio',
androidNotificationChannelName: 'Audio playback',
androidNotificationOngoing: true,
androidStopForegroundOnPause: true,
androidNotificationOngoing: false,
androidStopForegroundOnPause: false,
androidNotificationChannelDescription: 'Audio playback in the background',
androidNotificationIcon: 'drawable/ic_stat_notification_logo',
androidNotificationIcon: 'drawable/ic_stat_logo',
rewindInterval: appSettings.notificationSettings.rewindInterval,
fastForwardInterval: appSettings.notificationSettings.fastForwardInterval,
androidShowNotificationBadge: false,
Expand Down

0 comments on commit 69fcb91

Please sign in to comment.