-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Description
Describe the bug
When I add a listener for Trigger in Kotlin...
( https://v2.tauri.app/develop/plugins/develop-mobile/#plugin-events )
I get a permission error ( with seemingly no possible way to give this permission in default.json )
"Error setting up listeners: Command plugin:theplug|registerListener not allowed by ACL"
Also - it seems not possible for Kotlin to trigger a function in Rust ? ( commands.rs or otherwise )
Reproduction
1 - create an Android plugin
2 - add some commands in comands.rs / mobile.rs / desktop.rs
3 - add a Kotlin Trigger that sends a message to JS
We get this error
Error setting up listeners: Command plugin:theplug|registerListener not allowed by ACL
Expected behavior
The provided example should work
https://v2.tauri.app/develop/plugins/develop-mobile/#plugin-events
Also - it would be great if we could app.emit from Kotlin - then listen in Rust / JS - it seems not possible ?
Full tauri info output
Error setting up listeners: Command plugin:theplug|registerListener not allowed by ACL
Stack trace
Additional context
No response