tauri-apps / tauri-apps/plugins-workspace
[notification] `active()` returns an empty object on Android instead of list of active notifications
Open
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
Assessment
This issue has not been assessed yet.