#My plugin doesn't load
18 messages · Page 1 of 1 (latest)
Oooooh it's an Android plugin
That's a bit trickier then (since I haven't worked with android plugins yet, I've mostly been working on the whole "getting it to work at all in the first place" part x)
Hmmmmm, it suggests that you might in the app you're loading the plugin into haven't ran the init funciton
fn main() {
tauri::Builder::default()
.plugin(tauri_plugin_window_state::Builder::default().build())
.run(tauri::generate_context!())
.expect("error while running tauri application");
}
Something like this for example
well, can i just put init() after line 86?
The init() needs to be ran by the app you're running
At some point before the run() part
i dont know rust, how can i use this with my plugin?
Well the plugin is one project
Your app is a separate project
In the app project that uses your plugin project you need to run the plugins init function
yeah, so i just need to add .plugin(tauri_plugin_window_state::Builder::default().build()) line to run()?
Something like this is what you need, but inside your app project where you load the plugin