Skip to content

Upgrade turn notifications: new v2 channel, higher importance, icons, and defaults#3

Merged
siddheshkothadi merged 1 commit intomainfrom
codex/improve-task-completion-notifications-cd1tig
Mar 27, 2026
Merged

Upgrade turn notifications: new v2 channel, higher importance, icons, and defaults#3
siddheshkothadi merged 1 commit intomainfrom
codex/improve-task-completion-notifications-cd1tig

Conversation

@siddheshkothadi
Copy link
Copy Markdown
Owner

Motivation

  • Make turn-completed notifications more prominent and avoid users keeping muted settings by using a new channel ID turn_events_v2 so channel defaults are reapplied.
  • Improve visibility and feedback for important events by increasing importance and enabling vibration/lights.
  • Provide a richer visual notification using the app icon as a large icon and a modern small icon resource.

Description

  • Renamed TURN_CHANNEL_ID to turn_events_v2 to force a fresh notification channel with updated defaults.
  • Created the channel with NotificationManager.IMPORTANCE_HIGH, enabled vibration and lights, and kept badges via setShowBadge(true).
  • Updated notification builder to use R.drawable.ic_launcher_foreground as the small icon, attempt to load the app icon as a large icon using toBitmap, set priority to PRIORITY_HIGH, and apply .setDefaults(NotificationCompat.DEFAULT_ALL).
  • Added import for toBitmap and wrapped large icon extraction with runCatching to safely handle failures.

Testing

  • No automated tests were run as part of this change.

Codex Task

@siddheshkothadi siddheshkothadi merged commit 61aa16a into main Mar 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant