Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

onNotification is not called when local notification arrives and app is in background in android #1601

Closed
@anuj47billion

Description

@anuj47billion

Code for Local Noification

PushNotification.localNotification({
autoCancel: true,
title: 'Test Title',
message: 'Test Message',
vibrate: true,
vibration: 1000,
playSound: false,
data: {},
});

Trying to get in configure onNotification

PushNotification.configure({
onRegister: function(token) {
console.log('TOKEN:', token);
},
onNotification: function(notification) {
console.log('NOTIFICATION:', notification);
},
permissions: {
alert: true,
badge: true,
sound: true,
},
popInitialNotification: true,
requestPermissions: true,
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions