tauri-apps / tao

The TAO of cross-platform windowing. A library in Rust built for Tauri.
Apache License 2.0
1.57k stars 183 forks source link

Resumed event not emitted on android #949

Open johanholmerin opened 3 months ago

johanholmerin commented 3 months ago

Describe the bug

I'm attempting to integrate wgpu into tauri, which on android requires hooking into the Resumed event, but it doesn't seem like the event is ever emitted by tao

Steps To Reproduce

Clone johanholmerin/tao-android-resumed and follow the instructions to run on android

Expected behavior Prints Resumed and Suspend events

Screenshots

Platform and Versions (please complete the following information): OS: android Rustc: 1.79.0

Additional context

Seems to work correctly in winit

amrbashir commented 3 months ago

Our current android backend is a mess and barely works to make tauri v2 possible on android. We don't currently have the capacity to overhaul the android backend, but in the future, we hope to deprecate tao and use winit directly, which should fix this issue as well.