-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the bug
I'm just getting started, so still have a separate rust webserver, and my front end in tauri communicates with that.
The web frontend uses POST to send messages to the server, and receive replies. When I compile my tauri app with cargo run, (ie not android), my separate webserver receives post messages as normal.
But when I run with cargo tauri android dev, then the POSTs are now GETs, which fail with 405.
Steps To Reproduce
- clone at this commit
- have nix installed, with flakes enabled.
nix develop- cd tauri/src-tauri
- cargo tauri android init
- cargo tauri android run
Expected behavior
Expected POSTs.
Platform and Versions (please complete the following information):
Host OS:nixos
Target OS:android
Rustc:
cargo mobile doctor:
[bburdette@HOSS:~/code/zknotes/zknotes/tauri/src-tauri]$ cargo mobile doctor
[!] cargo-mobile v0.5.1
• Installed commit message isn't present
✗ The tauri-mobile installation directory is missing! Checked at "/home/bburdette/.cargo/.tauri-mobile"
• NixOS v22.11 (Raccoon
• rustc v1.69.0 (84c898d65 2023-4-16)
[✔] Android developer tools
• SDK v26.1.1 installed at "/nix/store/8xfmkb84dim3rk7lk59kprp1jarzi7c9-androidsdk/libexec/android-sdk"
• NDK v25.2.9519653 installed at
"/nix/store/8xfmkb84dim3rk7lk59kprp1jarzi7c9-androidsdk/libexec/android-sdk/ndk/25.2.9519653"
[✔] Connected devices
• Pixel_2_API_30 (sdk_gphone_x86)
Would you want to assign yourself to resolve this bug?
- Yes
- No
Additional context
Add any other context about the problem here.