ionic-team / ionic-team/capacitor-plugins

PushNotifications totally broken on Android

Open
#2,446 3 comments 0 reactions 0 assignees View on GitHub
platform: android
Dominant language
Java
Stars
678
Forks
685
Avg merge
4d 22h
Merged PRs (30d)
3

Description

## Bug Report

### Plugin(s)

PushNotifications

### Capacitor Version

7.0.x

### Platform(s)

Android

### Current Behavior

- [`getDeliveredNotifications()`](https://github.com/ionic-team/capacitor-plugins/pull/2445) throws as the linked PR shows
- [`pushNotificationActionPerformed`](https://github.com/ionic-team/capacitor-plugins/pull/2445) event throws as the linked PR shows
- [`getDeliveredNotifications()`](https://github.com/ionic-team/capacitor-plugins/issues/2317) notification.id is an int
- [`removeDeliveredNotifications()`](https://github.com/ionic-team/capacitor-plugins/issues/2317) does not work when passing a notification from `getDeliveredNotifications()`
- according to documentation `ActionPerformed` object has a key `.notification` that represents the notification as `PushNotificationSchema` object, which is not the case. The `notification` object contains the `id` key merged with the keys from the `data` object. It does not have `title`, `body` and other keys.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.