Under Review
over 1 year ago

Need to turn on Mobile Connection to Download Fit file over Bluetooth

When a Connect Iq app wants to download a fit file stored on a Bluetooth connected mobile device, the download is not working anymore. You need to turn on the "mobile data connection" too to get it to work. Seems the localhost is not reachable over bluetooth only anymore.

Reproduceability: always

Affected apps: iqmapreceiver, gimporter, locus maps..

Connect iq sdk version: any latest

Devices: any (edge, fenix)

Parents
  • Hello Travis, thx for checking this out, let me explain one concretr use case for Android mobile devices

    1. Mobile has Cellular data disabled (would be a PASS condition)

    2. Mobile has Wifi disabled (would be a PASS condition)

    3. Mobile has Bluetooth enabled. Garmin device connected over Garmin Connect Mobile

    4. Companion app on Mobile installed. E.g iqmapreceiver. Running localhost webserver

    5. Garmin device has companion app installed, e.g. iqmapreceiver (app or widget)

    6.  Communication over http, working, localhost://127.0.0.1:<port>. Only fit download does not work, doesnt matter the file size

    Fenix API command

    var params =

                               {

                               "file" => fileName

                               };

                               var options =

                               { 

                    :method       => Comm.HTTP_REQUEST_METHOD_GET,

                    :responseType => Comm.HTTP_RESPONSE_CONTENT_TYPE_FIT

                };

                                            Comm.makeWebRequest

                                             (

                                                            url

                                                          , params

                                                          , options

                                                          , Lng.Method.method(:onReceivemakeFitFileRequest)

                                             );

    7. Fail

    Need to let on 1. Or 2. to succed with 6.

    Mobile: samsung s23 ultra, Android 13

    Garmin device: fenix 6 pro 25.10

Comment
  • Hello Travis, thx for checking this out, let me explain one concretr use case for Android mobile devices

    1. Mobile has Cellular data disabled (would be a PASS condition)

    2. Mobile has Wifi disabled (would be a PASS condition)

    3. Mobile has Bluetooth enabled. Garmin device connected over Garmin Connect Mobile

    4. Companion app on Mobile installed. E.g iqmapreceiver. Running localhost webserver

    5. Garmin device has companion app installed, e.g. iqmapreceiver (app or widget)

    6.  Communication over http, working, localhost://127.0.0.1:<port>. Only fit download does not work, doesnt matter the file size

    Fenix API command

    var params =

                               {

                               "file" => fileName

                               };

                               var options =

                               { 

                    :method       => Comm.HTTP_REQUEST_METHOD_GET,

                    :responseType => Comm.HTTP_RESPONSE_CONTENT_TYPE_FIT

                };

                                            Comm.makeWebRequest

                                             (

                                                            url

                                                          , params

                                                          , options

                                                          , Lng.Method.method(:onReceivemakeFitFileRequest)

                                             );

    7. Fail

    Need to let on 1. Or 2. to succed with 6.

    Mobile: samsung s23 ultra, Android 13

    Garmin device: fenix 6 pro 25.10

Children