Bug Report
Plugin(s)
Capacitor Version
💊 Capacitor Doctor 💊
Latest Dependencies:
@capacitor/cli: 7.2.0
@capacitor/core: 7.2.0
@capacitor/android: 7.2.0
@capacitor/ios: 7.2.0
Installed Dependencies:
@capacitor/cli: 7.2.0
@capacitor/android: 7.2.0
@capacitor/core: 7.2.0
@capacitor/ios: 7.2.0
[success] iOS looking great! 👌
[success] Android looking great! 👌
Platform(s)
ios
Current Behavior
notification object received at runtime for event pushNotificationActionPerformed is of type PushNotificationSchema not the expected ActionPerformed type as defined in the definitions.d.ts file
[log] - Push notification received: {"id":"39249DF0-357C-4AC8-A33C-2EEFC3C3B8D9","body":"This notofication will take you to the summaries tab","badge":1,"title":"Tot Tally Notifications","subtitle":"","data":{"google.c.sender.id":"874365736346","google.c.a.e":"1","eventTab":"tab-summary","google.c.a.c_id":"8322769433759518156","google.c.a.udt":"0","google.c.a.ts":"1744963118","google.c.a.c_l":"Tot Tally Notifications","gcm.message_id":"1744963197665596","aps":{"mutable-content":1,"alert":{"body":"This notofication will take you to the summaries tab","title":"Tot Tally Notifications"}},"gcm.n.e":"1","google.c.fid":"dISd6bA9x0F1uU0AmnTOYn"}}
Expected Behavior
expected to received notification object of type ActionPerformed
Code Reproduction
await PushNotifications.addListener(
"pushNotificationActionPerformed", // user clicked on the notification from the notifications center
(notification) => {
const data = notification.notification.data;
console.log(
"Push notification action performed: ",
JSON.stringify(notification)
);
if (data.eventTab) {
// eventTab is any property you define in the push notification payload
router.push(`/app/events/${data.eventTab}`, "root");
}
}
);
Other Technical Details
Additional Context
Bug Report
Plugin(s)
Capacitor Version
Platform(s)
ios
Current Behavior
notification object received at runtime for event
pushNotificationActionPerformedis of typePushNotificationSchemanot the expectedActionPerformedtype as defined in thedefinitions.d.tsfileExpected Behavior
expected to received notification object of type
ActionPerformedCode Reproduction
Other Technical Details
Additional Context