Skip to content

Commit

Permalink
chore: downloading notification rework
Browse files Browse the repository at this point in the history
  • Loading branch information
MSOB7YY committed Oct 21, 2023
1 parent 9889c32 commit b935ef5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/controller/notification_controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class NotificationService {
final _historyImportChannelName = 'History Import';
final _historyImportChannelDescription = 'Imports Tracks to History from a source';

final _youtubeDownloadID = 1;
final _youtubeDownloadID = 2;
final _youtubeDownloadPayload = 'youtube_download';
final _youtubeDownloadChannelName = 'Downloads';
final _youtubeDownloadChannelDescription = 'Downlaod content from youtube';
Expand Down Expand Up @@ -188,14 +188,17 @@ class NotificationService {
'$id',
channelName,
channelDescription: channelDescription,
groupKey: '$id',
category: AndroidNotificationCategory.progress,
setAsGroupSummary: true,
channelShowBadge: false,
importance: Importance.high,
priority: Priority.high,
onlyAlertOnce: true,
showProgress: true,
ongoing: true,
visibility: NotificationVisibility.public,
// styleInformation: null, // this gets displayed instead of subtitle
styleInformation: BigTextStyleInformation(subtitle(sub)), // this gets displayed instead of subtitle
largeIcon: pic,
maxProgress: maxProgress,
icon: 'ic_stat_musicnote',
Expand Down

0 comments on commit b935ef5

Please sign in to comment.