#Testing on Android device over ADB?

18 messages ยท Page 1 of 1 (latest)

solemn bobcat
#

Hello ๐Ÿ™‚ Loving tauri so far
However I have a device connected over ADB, and when I do tauri run android dev
it will sync okay to the android device over USB - but on the app window it says "error sending request to url (http://192.168.1.168:5173)

#

Obviously this is because web dev server is not running on android device

#

Does anyone have a proposed solution or how can I go about testing this with local device as described?

#

I could open ports on localhost web server, then point Tauri at the IP address in my local network to that web server/ip where it is running (and connect android device to local network)

#

But was wondering if maybe there was a better way anyone knew of where I could just run tauri run android dev and it will shoot the web server/app over ADB

sacred karma
#

your issue btw sounds like a misconfiguration of your frontend. It has to be configured to listen to the local network and not just localhost.

#

you can btw test create-tauri-app templates, which all should work out of the box

#

p.s. i exclusively use real devices over adb. i hate simulators.

solemn bobcat
#

but from device, on the Tauri app it is still looking for 192.168.1.168, on the device itself

#

which means web server would have to be running on the device?

solemn bobcat
#

getting real tired of the java + qemu hogging my resources just for testing

west shadow
#

I just see white screen xd

sacred karma
#

unless of course that's the url of your phone, but seeing 127.0.0.1 would be more likely then

cosmic swan