Skip to content

Notification icon does not change dynamically in Android #5

Description

@alifja

Environment

  • React Native version: 0.76.9
  • react-native-app-icon-changer version: 1.3.2
  • Platform: Android

Description

I'm using the react-native-app-icon-changer library to dynamically change my app's icon. The functionality for changing the app icon itself works correctly. However, the notification icon (the small icon that appears in the status bar for new notifications) does not update to reflect the new icon.

This behavior occurs on Android only and seems to be independent of the app icon change. The notification icon remains the default icon specified in the app's manifest, even after the main app icon has been successfully updated.

Expected Behavior

When the app icon is changed dynamically using the library, the notification icon should also update to match the newly selected icon.

Actual Behavior

The app icon changes as expected, but the notification icon does not update and remains the default icon.

Steps to Reproduce

  1. Integrate react-native-app-icon-changer into a React Native project.
  2. Set up multiple app icons as per the library's documentation.
  3. Implement a feature to dynamically change the app icon.
  4. Send a push notification to the device.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions