tauri-apps / tauri-apps/plugins-workspace

[notification] `active()` returns an empty object on Android instead of list of active notifications

Open
#1,897 0 comments 0 reactions 0 assignees View on GitHub
platform: android plugin: notification type: bug
Dominant language
Rust
Stars
1.8k
Forks
602
Avg merge
4d 14h
Merged PRs (30d)
9

Description

I want to get a list of notifications displayed in the notification center on Android after I send some notifications.

In JS I invoke:

```js
const checkNotifications = () => {
active().then((notifications) => {
console.log({ active: notifications });
});

pending().then((notifications) => {
console.log({ pending: notifications });
});
};
```

In the Console I can see:

```js
{pending: []} // An empty array.
{active: {}} // An empty object.
```

Tauri version: `2.0.0`
Android emulator version: Android 15.0, API 35

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.