tauri-apps / plugins-workspace

All of the official Tauri plugins in one place!
https://tauri.app
Apache License 2.0
827 stars 229 forks source link

[single-instance] Callback function does not run if the app is not visible (after calling window.hide()) #1613

Open arjanvillon opened 1 month ago

arjanvillon commented 1 month ago

Hi,

I've discovered that the single instance callback function after initialization doesn't work when the app is not visible (I call window.hide() function). What I want to do is to show the app again when another instance is opened by using window.show(). Running window.miniminize() makes the single instance work but I'm hoping to use the hide() function. I also tried the one from the v2 docs about focusing on the new instances and it also does not work. Please help, thank you! 🙏

FabianLars commented 1 month ago

Thank you for the report, which OS did you test this on?

arjanvillon commented 1 month ago

I'm using MacOS

gusxodnjs commented 1 week ago

I have the same issue. Is there anything progress?