React-native-push-notification: largeIcon not displayed android

Created on 18 Jul 2017  路  4Comments  路  Source: zo0r/react-native-push-notification

Hi, I cannot make largeIcone works.. I changed the ic_launcher.png with my icons (with differents dimensions), but the large icons doesn't appear. did I miss something?
Thanks

Stale

Most helpful comment

Kind of sad that it's been 2 years and there have been no answers to this.

The issue is present today as well.

All 4 comments

Kind of sad that it's been 2 years and there have been no answers to this.

The issue is present today as well.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 30 days if no further activity occurs. Thank you for your contributions.

I am still facing the issue.

I tried this:
PushNotification.localNotification({
largeIconUrl: 'https://img.icons8.com/search'
})
PushNotification.configure({
// (required) Called when a remote or local notification is opened or received
onNotification: async (notification) => {
console.log('NotificationCAlleddddddddddedddddddddd ==>', notification)
const { foreground, userInteraction, data } = notification;
// if (foreground) {
// console.log('foregroundNOTIFICATION ==>', notification)
// }
// if (userInteraction) {
// onNotificationOpen(notification)
// }
onNotificationOpen(notification)
},
// Should the initial notification be popped automatically
// default: true
popInitialNotification: true,
})

but not working.

Was this page helpful?
0 / 5 - 0 ratings