Complete
over 5 years ago

Garmin Connect Mobile 4.22 for Android includes the changes to allow HTTP on 127.0.0.1.

Connect version 4.20 broke local http access?

Getting several reports of functionality no longer working, it looks like Android Garmin connect app version 4.20 may have broken web request to local host via urls like http://127.0.0.1:17580/sgv.json?count=3

  • Brandon,

    the fix which has been made is a change the se, becurity_config_xml to 

    <?xml version="1.0" encoding="UTF-8"?>
    -<network-security-config>
    -<debug-overrides>
    -<trust-anchors>
    <certificates src="user"/>
    </trust-anchors>
    </debug-overrides>
    -<domain-config cleartextTrafficPermitted="true">
    <domain includeSubdomains="true">garmin.com</domain>
    <domain includeSubdomains="true">garmin.cn</domain>
    <domain includeSubdomains="true">garmincdn.com</domain>
    <domain includeSubdomains="true">kklian.net</domain>
    <domain includeSubdomains="true">strava.com</domain>
    <domain includeSubdomains="true">127.0.0.1</domain>
    </domain-config>
    </network-security-config>

    however as stated before in this thread: If you change to 

    <?xml version="1.0" encoding="utf-8"?>
    <network-security-config>
    <base-config cleartextTrafficPermitted="true">
    <trust-anchors>
    <certificates src="system" />
    </trust-anchors>
    </base-config>
    </network-security-config>

    all uses cases in this thread are fixed, because HTTP is allowed again. This is supported by Google (https://developer.android.com/training/articles/security-config),  see section <base config>

    can you please reconsider your solution?

  • Changed localhost to 127.0.0.1 in gimporter V6.2 .. update and it should work again

  • Locus-OUT FIT works now with 4.22 and updated app Locus-IN FIT v1.1. Thanks Radim

  • Guys, if you want to do offline imports of tracks to your Garmin watches, you can try this app:
    https://play.google.com/store/apps/details?id=info.wearsoft.locus.addon.ciq
    I already made it compatible with Garmin's "fix". 

    Short comment from me to the situation: Please keep in mind this was not some independent unfortunate event or accident. Thanks to my experience in the same field, I am sad to predict that with the way how Connect IQ is currently managed by Garmin, issues like this will be happening more and more often leaving both devs and users desperate. I hope somebody responsible in Garmin will finally realise this. It is too late for just trying to learn from previous mistakes.

  • Updating to 4.22 is unfortunately not resolving the issues with Gimporter/Gexporter, Locus-OUT/Locus-IN and IQreceiver. I am going back again to 4.19 and wait until Garmin finally resolves the issue with localhost. Please get this fixed! The above apps have essential functionality (that Garmin lacks) for outdoor orientation, which was essentially the reason why I bought a solid watch from Garmin. Please do not fail us.