fix: notification logo not showing (#42)
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 743 B After Width: | Height: | Size: 743 B |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
|
Before Width: | Height: | Size: 3.8 KiB After Width: | Height: | Size: 3.8 KiB |
3
android/app/src/main/res/raw/keep.xml
Normal file
|
|
@ -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" />
|
||||||
|
|
@ -21,10 +21,10 @@ Future<void> configurePlayer() async {
|
||||||
await JustAudioBackground.init(
|
await JustAudioBackground.init(
|
||||||
androidNotificationChannelId: 'com.vaani.bg_demo.channel.audio',
|
androidNotificationChannelId: 'com.vaani.bg_demo.channel.audio',
|
||||||
androidNotificationChannelName: 'Audio playback',
|
androidNotificationChannelName: 'Audio playback',
|
||||||
androidNotificationOngoing: true,
|
androidNotificationOngoing: false,
|
||||||
androidStopForegroundOnPause: true,
|
androidStopForegroundOnPause: false,
|
||||||
androidNotificationChannelDescription: 'Audio playback in the background',
|
androidNotificationChannelDescription: 'Audio playback in the background',
|
||||||
androidNotificationIcon: 'drawable/ic_stat_notification_logo',
|
androidNotificationIcon: 'drawable/ic_stat_logo',
|
||||||
rewindInterval: appSettings.notificationSettings.rewindInterval,
|
rewindInterval: appSettings.notificationSettings.rewindInterval,
|
||||||
fastForwardInterval: appSettings.notificationSettings.fastForwardInterval,
|
fastForwardInterval: appSettings.notificationSettings.fastForwardInterval,
|
||||||
androidShowNotificationBadge: false,
|
androidShowNotificationBadge: false,
|
||||||
|
|
|
||||||