localnotificationsplugin icon indicating copy to clipboard operation
localnotificationsplugin copied to clipboard

Android icon when app is not running in background

Open stesvis opened this issue 5 years ago • 9 comments

Bug

Receiving a notification while the app is not running uses the default icon.

Plugin Version: 3.0.1 Platform (e.g., Android API 28):
Device/Hardware: Huawei

Expected behavior

  • When i receive the notification while the app is running or in background mode, the notification icon is correct.
  • When i receive the notification after killing the app, the icon is correct.

Actual behavior

  • When i receive the notification while the app is running or in background mode, the notification icon is correct.
  • When i receive the notification after killing the app, the icon is the default icon (with the exclamation mark in it).

Steps to reproduce the behavior

  • Create a new notification
  • Kill the app
  • Wait till you receive the notification

stesvis avatar Mar 06 '19 19:03 stesvis

The point should be. In this function https://github.com/edsnider/localnotificationsplugin/blob/master/src/Plugin.LocalNotifications.Android/ScheduledAlarmHandler.cs#L25 the NotificationIconId get´s never set.

DoktorAerzt avatar Mar 07 '19 06:03 DoktorAerzt

Hey guys. Is there a workaround for this in the meantime? Or perhaps just a way to replace the default notification icon altogether? Many thanks!

AntvissMedia avatar Apr 01 '19 15:04 AntvissMedia

Same problem for me. If I kill the app I receive the notification with an exclamation mark instead of the correct icon (if the app is not killed everything is ok)

REDECODE avatar May 13 '19 18:05 REDECODE

Same problem here, any solution?

matheuscschenfeld avatar Oct 02 '20 18:10 matheuscschenfeld

@REDECODE @AntvissMedia @DoktorAerzt @edsnider

matheuscschenfeld avatar Oct 02 '20 18:10 matheuscschenfeld

Hi @matheuscschenfeld .

Since writing the comment I have moved to a different plugin. Not because of this issue, as this wasn't a deal breaker for me. But I needed support for Categories on Android.

This plugin was last updated in Nov 2018 so I was also worried that it might not include any other features that might come up in the meantime.

Sorry I can't help you, bud.

AntvissMedia avatar Oct 02 '20 19:10 AntvissMedia

Hi @AntvissMedia, thanks for you answer. Which plugin are you using?

matheuscschenfeld avatar Oct 02 '20 19:10 matheuscschenfeld

thanks @AntvissMedia

matheuscschenfeld avatar Oct 02 '20 19:10 matheuscschenfeld

Happy to help @matheuscschenfeld

AntvissMedia avatar Oct 02 '20 19:10 AntvissMedia