Expected Behavior:
Notification Icon should be also displayed inside the Notification Drawer and Lock Screen. But, unfortunately, nothing shows up. It is blank. The only place that it gets displayed is on Status Bar.
I forked your repository and modified the:
return await AudioService.init(
builder: () => MyAudioHandler(),
config: AudioServiceConfig(
androidNotificationChannelId: 'dev.suragch.flutter_audio_service_demo.channel', <-- This
androidNotificationChannelName: 'Audio Service Demo',
androidNotificationOngoing: true,
androidStopForegroundOnPause: true,
androidShowNotificationBadge: true, <-- This
androidNotificationIcon: "mipmap/ic_launcher", <-- This
),
);
I added this in app > build.gradle
shrinkResources false
I added this in android > app > src > main > AndroidManifest.xml inside tag :
It is solved now.
Check this issue that I closed.
It seems that the Notification Icon in Notification Drawer and Lock Screen only display the album image, not the application icon.
Plugin: audio_service: ^0.18.0-beta.0
Expected Behavior: Notification Icon should be also displayed inside the Notification Drawer and Lock Screen. But, unfortunately, nothing shows up. It is blank. The only place that it gets displayed is on Status Bar.
I forked your repository and modified the:
I added this in app > build.gradle
shrinkResources false
I added this in android > app > src > main > AndroidManifest.xml inside tag :
The minimal repository that can be reproduced is on this link: Forked @suragch Repository