Open felixkrautschuk opened 4 years ago
When scheduling a local notification like this:
LocalNotifications.schedule( [{ id: 1, title: 'Title', body: 'This is a message', forceShowWhenInForeground: true, customData: { idStory: "1234", titleStory: "This is the title" } }]).then(() => { alert({ title: "Notification scheduled", message: 'ID: 1', okButtonText: "OK, thanks" }); });
(note the customData object) ...
I want to get this data when the notification has been clicked.
LocalNotifications.addOnMessageReceivedCallback(notificationData => { console.log("Notification received: " + JSON.stringify(notificationData)); });
But here, I only get id, title, body, foreground and event on iOS.
On Android, I get the whole object that I've passed within the schedule method, so even customData can be accessed.
My config:
@felixkrautschuk you got any solution on this issue? I am looking for the same
Any update on this issue?
Need this too. Any update?
When scheduling a local notification like this:
(note the customData object) ...
I want to get this data when the notification has been clicked.
But here, I only get id, title, body, foreground and event on iOS.
On Android, I get the whole object that I've passed within the schedule method, so even customData can be accessed.
My config: