Skip to content

Inconsistent App Icon Display in Notifications on Windows 10/11 #2738

@aa2013

Description

@aa2013

Describe the bug
The application icon in the top-left corner of notifications displays inconsistently on Windows 10 and Windows 11. The icon sometimes appears correctly and sometimes does not appear at all, with no clear reproduction pattern. The icon file is an ICO file from the assets package.

To Reproduce
Configure the notification plugin in a Flutter application using an ICO file from assets as the app icon
Run the application on Windows 10 or Windows 11
Trigger a notification to display
Observe the app icon in the top-left corner of the notification
The icon may sometimes display correctly, and sometimes not appear at all, with inconsistent behavior

Expected behavior
The application icon should consistently and correctly appear in the top-left corner of every notification.

Sample code to reproduce the problem

    var iconPath = File.fromUri(WindowsImage.getAssetUri("assets/images/logo/logo.png")).absolute.path;
    final windowsSettings = WindowsInitializationSettings(
      appName: Constants.appName,
      appUserModelId: Constants.pkgName,
      guid: Constants.appGuid,
      iconPath: iconPath,
    );

This issue can occur during both the development phase and in released versions. In most cases, the icon does not appear. The released version was installed using an InnoSetup packaged EXE installer.

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions