tauri-apps/tauri

[bug] Having async entrypoint for android doesn't work

Closed this issue · 0 comments

Describe the bug

When lib.rs has async entrypoint only empty screen shows on android

Reproduction

Create tauri app and make function with: #[cfg_attr(mobile, tauri::mobile_entry_point)] async

Expected behavior

To work normal just like async functions work on desktop

Full tauri info output

[✔] Environment
    - OS: Pop!_OS 22.4.0 x86_64 (X64)
    ✔ webkit2gtk-4.1: 2.44.2
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.79.0 (129f3b996 2024-06-10)
    ✔ cargo: 1.79.0 (ffa9cf99a 2024-06-03)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: 1.79-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.16.0
    - npm: 10.8.1

[-] Packages
    - tauri 🦀: 2.0.0-rc.15
    - tauri-build 🦀: 2.0.0-rc.12
    - wry 🦀: 0.43.1
    - tao 🦀: 0.30.2
    - tauri-cli 🦀: 2.0.0-rc.16
    - @tauri-apps/api : 2.0.0-rc.5
    - @tauri-apps/cli : 2.0.0-rc.16

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.0-rc.3
    - @tauri-apps/plugin-shell : 2.0.0-rc.1

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../ui/build
    - devUrl: http://localhost:1420/
    - framework: Svelte
    - bundler: Vite


### Stack trace

_No response_

### Additional context

_No response_