Android SDK communication doesn't work with simulator

Hi !

I'm trying to code a ciq widget which would require a companion app. However I can't make the Android SDK work with the simulator. I already tried the "empty string uuid workaround" as mentionned here Android Mobile SDK - tethered connection - app status UNKNOWN - Connect IQ App Development Discussion - Connect IQ - Garmin Forums but it doesn"t work anymore. The communication works fine in my app with a physical device and the ciq instance set to WIRELESS on the Android app but can't receive any message on the phone from the simulator.

I also tried to run the connect-iq-android-sdk sample on GitHub which should communicate with the Comm sample in the SDK but it gave me the exact same results. It seams like the messages never leave the simulator as I can"t sniff anything on the 7381 port with Wireshark except when I turn on the adb connection in the simulator. Moreover, the ConnectionListener's callbacks onError and onComplete are never triggered and after 3 tries of sending a message, I get an error in the debug console saying the communication queue is full.

Does anyone have the same issue and does anyone have an idea on how to solve this ?

Have a nice day!

SDK Version: 8.3.0

  • Hello,

    Tricky issue with the Garmin Connect IQ simulator's tethered connection to the Android Mobile SDK—it often fails to properly route messages back to the phone, even though the forward path to a physical device works. EZ Pass DE The fact that you can't sniff traffic on port 7381 suggests the issue is likely within the simulator itself, preventing the message from ever leaving its virtual environment.