localnotificationsplugin
localnotificationsplugin copied to clipboard
Android icon when app is not running in background
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
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.
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!
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)
Same problem here, any solution?
@REDECODE @AntvissMedia @DoktorAerzt @edsnider
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.
Hi @AntvissMedia, thanks for you answer. Which plugin are you using?
thanks @AntvissMedia
Happy to help @matheuscschenfeld