tauri-apps / tauri-apps/plugins-workspace
[notification] `Unrecognized field _` when adding an extra in Android
- Dominant language
- Rust
- Stars
- 1.8k
- Forks
- 602
- Avg merge
- 4d 14h
- Merged PRs (30d)
- 9
Description
In release mode, when I add an extra called `hrl` to the notification, I get this error:
```
01-15 16:08:52.147 5779 6119 E AndroidRuntime: java.lang.Error: v1.a: Unrecognized field "hrl" (class app.tauri.plugin.JSObject), not marked as ignorable (0 known properties: ])
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 289] (through reference chain: app.tauri.notification.Notification["extra"]->app.tauri.plugin.JSObject["hrl"])
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1173)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at o2.o.run(SourceFile:26)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at java.lang.Thread.run(Thread.java:919)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: Caused by: v1.a: Unrecognized field "hrl" (class app.tauri.plugin.JSObject), not marked as ignorable (0 known properties: ])
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 289] (through reference chain: app.tauri.notification.Notification["extra"]->app.tauri.plugin.JSObject["hrl"])
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.e.D0(SourceFile:91)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.e.E0(Unknown Source:28)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.d.R0(Unknown Source:41)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.d.e(SourceFile:16)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at t1.s.j(Unknown Source:26)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.d.R0(Unknown Source:31)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.d.e(SourceFile:16)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at s1.l.e0(SourceFile:171)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at p1.x.f(SourceFile:78)
01-15 16:08:52.147 5779 6119 E AndroidRuntime: at p1.x.j(SourceFile:18)
0
```
Tauri info:
```
[holonix:~/projects/darksoil/rostanga]$ npm run tauri info
> rostanga@0.0.0 tauri
> tauri info
[✔] Environment
- OS: Ubuntu 22.04 X64
✔ webkit2gtk-4.1: 2.42.4
✔ rsvg2: 2.57.0
✔ rustc: 1.71.1 (eb26296b5 2023-08-03)
✔ cargo: 1.71.1 (7f1d04c00 2023-07-29)
✔ rustup: 1.26.0 (5af9b9484 2023-04-05)
✔ Rust toolchain: 1.71-x86_64-unknown-linux-gnu (default)
- node: 18.19.0
- yarn: 1.22.21
- npm: 10.2.3
[-] Packages
- tauri [RUST]: 2.0.0-alpha.20
- tauri-build [RUST]: 2.0.0-alpha.13
- wry [RUST]: 0.35.2
- tao [RUST]: git+https://github.com/guillemcordoba/tao?branch=dev#53ce9b3381a63dd20e2a1c6401bc006c22288153 (0.24.0)
- tauri-cli [RUST]: 2.0.0-alpha.18
- @tauri-apps/api [NPM]: 2.0.0-alpha.13
- @tauri-apps/cli [NPM]: 2.0.0-alpha.20
[-] App
- build-type: bundle
- CSP: unset
- distDir: ../dist
- devPath: http://localhost:1420/
- bundler: Vite
```
Plugin v2.0.0-alpha.7
Contributor guide
Assessment
This issue has not been assessed yet.