Skip to content

[SDK-415] Fix for notification icon#1068

Merged
franco-zalamena-iterable merged 5 commits into
masterfrom
feature/SDK-415-notification-icon-fallback
Jun 25, 2026
Merged

[SDK-415] Fix for notification icon#1068
franco-zalamena-iterable merged 5 commits into
masterfrom
feature/SDK-415-notification-icon-fallback

Conversation

@franco-zalamena-iterable

@franco-zalamena-iterable franco-zalamena-iterable commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

🔹 Jira Ticket(s) if any

✏️ Description

This pr fixes the icon fallback going to the default icon on low resolutions in some edge cases

Before (Blob) Fix(Icon fallback)
master.webm
icon_fallback.webm

franco-zalamena-iterable and others added 3 commits June 24, 2026 12:43
The 3.9.0 release (#1069) shipped without this PR's notification-icon
fallback feature, so the entry belongs under Unreleased, not 3.9.0.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

@sumeruchat sumeruchat left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. Good call folding the worker's duplicate getSmallIconId into the shared getIconId, so the foreground-service and normal push notifications now resolve the icon identically.

Two non-blocking notes:

  1. The new chain silently adopts @drawable/notification_icon or ic_notification before the launcher icon. Intentional and net-positive (fixes the white-blob), but worth making the CHANGELOG line explicit that those conventionally-named drawables can now be picked up automatically.
  2. The new tests cover the new sources well, but not the setNotificationIcon()/SharedPreferences source, source #2 winning over Firebase/convention, or notification_icon winning over ic_notification. Worth adding if you want full ordering coverage.

@joaodordio joaodordio left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@franco-zalamena-iterable franco-zalamena-iterable merged commit ac0917c into master Jun 25, 2026
9 of 10 checks passed
@franco-zalamena-iterable franco-zalamena-iterable deleted the feature/SDK-415-notification-icon-fallback branch June 25, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Enhancement: Improve notification icon fallback to check standard Android notification icon conventions

4 participants