feat: improve notification icon fallback to check standard Android conventions (#976)#1038
Closed
franco-zalamena-iterable wants to merge 1 commit intomasterfrom
Closed
Conversation
…nventions (#976) Before falling back to the app launcher icon (which appears as white square on Android 5.0+), check for standard notification icon locations: 1. Firebase default_notification_icon meta-data 2. @drawable/notification_icon (Expo/React Native convention) 3. @drawable/ic_notification (common Android convention) This improves out-of-the-box experience for Expo and React Native users. Made-with: Cursor
Contributor
Author
PR AnalysisProblem: When Ideal fix plan:
What the PR did:
Assessment:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Improves the notification icon fallback chain to check standard icon conventions before using the app launcher icon (which renders as a white square on Android 5.0+).
Changes
Updated
IterableNotificationHelper.getIconId()fallback order:iterable_notification_iconresource (existing behavior, unchanged)com.google.firebase.messaging.default_notification_iconmeta-data@drawable/notification_icon— Expo plugin and React Native SDK convention@drawable/ic_notification— common Android conventionMotivation
Expo users who configure notification icons via
app.jsonhave@drawable/notification_icongenerated automatically. Without this change, they see a white square unless they also manually additerable_notification_iconto AndroidManifest.xml.Test plan
iterable_notification_iconwhen configured@drawable/notification_iconwhen present@drawable/ic_notificationwhen presentMade with Cursor