Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to Debug the watch app using the ConnectIQ Simulator and the Android Emulator #35

Open
pdeubel opened this issue Sep 14, 2022 · 0 comments

Comments

@pdeubel
Copy link

pdeubel commented Sep 14, 2022

Hi, I tried to debug the application for the watch and the companion Android app so that I can try some things regarding battery saving but unfortunately I failed to create my development setup for both apps.

I am able to start the watch app using the Connect IQ simulator through VS Code, and I am also able to start the Android app in my emulated Android device (Pixel 5 API 28, SleepAsAndroid is installed). I set the debug values in both apps to true, so it uses the tethered connection. I can also connect both using ADB. When debugging the Android app I see that the Simulator device is recognized and connected, however no messages are sent between the two emulated devices. I think this has to do with the Android app not recognizing that the watch app is installed in the simulated watch. IQApp(IQ_APP_ID) in the Android app works, but the state of the App is always unknown and/or not installed.

My question: How do you develop/debug both apps, do you use a real Android device? Is it necessary to install Garmin Connect on the emulated Android device? I installed it but I could not log in, and even if I could I would not be able to connect the simulated watch. Is this even necessary when using the TETHERED connection type? Thanks

OS: Linux
Simulated Garmin watch: Venu 2 (I removed all other devices from the manifest)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant