Why LargeIcon not display on android in background and closed app state?
See original GitHub issueI am not getting large icon if receiving notification in background or closed app state.
Here Top notification I am getting when app in foreground and second one when app is background. Please suggest how to show large icon in background and closed app state too.
This is a configuration I have inside project::
PushNotification.configure({
// (required) Called when a remote or local notification is opened or received
onNotification: this.clickOnOpenAppNotification,
// IOS ONLY (optional): default: all - Permissions to register.
permissions: { alert: true, badge: true, sound: true },
// Should the initial notification be popped automatically
// default: true
popInitialNotification: true,
/**
* (optional) default: true
* - Specified if permissions (ios) and token (android and ios) will requested or not,
* - if not, you must call PushNotificationsHandler.requestPermissions() later
* - if you are not using remote notification or do not have Firebase installed, use this:
* requestPermissions: Platform.OS === 'ios'
*/
requestPermissions: true,
largeIcon: 'ic_launcher',
smallIcon: '@mipmap/notification_state',
});
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
android - Not getting Large Icon when app is not in background
It's because you've to set the large icon first and small icon second to that, also you shouldn' ...
Read more >Notifications Overview | Android Developers
A notification is a message that Android displays outside your app's UI to provide the user with reminders, communication from other people, or...
Read more >Firebase Notifications in Background & Foreground in Android
When the app is closed, your notifications are processed by the Google Service process, which take care of displaying your notifications as ...
Read more >Android notifications - Material Design
Foreground services are app processes that run in the background while the user is ... By default, a timestamp does not appear, but...
Read more >How to implement Flutter local notifications to boost user ...
Running your application should display the initial state of your app. ... on a notification when the app is no longer in the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@Dallas62 I have checked my manifest file everything is set correctly. Also icons are added inside res folder.
And now inside onMessage handler I am setting local notification like this. When I am getting remote notification then this returns a notification value and here I have added localNotification config like this:
I am still not able to show large icon in background and closed app state. Please help I have already invested a day to add this icon.
Hi @ArchanaSharma95 did you find a work around for this?