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.

data from the array return by getScheduledLocalNotifications not giving desired result #2172

Closed
@imran1992

Description

@imran1992

data object from the Array got by getScheduledLocalNotifications gives null on android and on ios give empty object.

While creating

PushNotification.localNotificationSchedule({
        category: 'Reminder',
        channelId: 'reminder',
         title: `Reminder: ${comingFrom ? apiData.project.name : 5}`,
         message: note ? note : 'Donation reminder',
         date: new Date(Date.now() + 86400 * parseInt(days, 10) * 1000),
         data: {
           frequency: days,
           pid: comingFrom ? apiData.project_id : data.pid,
           type: 'reminder',
              },
         allowWhileIdle: true,
      });

Also it gives proper notification , but getScheduledLocalNotifications doesn't give proper data element

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions