Forum Cross Platform with Xamarin

Xamarin Forms and Garmin?

Hi,

Is it possible to write a Windows Phone and Android application using C# (Xamarin.Forms) and interface with a Garmin device? I am interested in pulling information such as HR and GPS. If not, is it even possible to do this with pure java with the Garmin device?

I know this is possible with the Microsoft Band. I actually already have this product. Please understand that my question is specific to the Garmin Device. Thanks.

Answers

  • ThomasBurkhartThomasBurkhart DEMember ✭✭✭✭

    How does the Garmin communicate with the Phone?

  • HeathYatesHeathYates USMember

    There seems to be two ways that Garmin allows devices to communicate:

    1. Hacky way: http://www.garmindeveloper.com/web-device/garmin-communicator-plugin/ (Could I use javascript in a universal windows app?)
    2. Android SDK: http://developer.garmin.com/connect-iq/programmers-guide/communication/

    My research indicates to me that there are no .NET libraries to connect a Garmin device. Therefore, I think it is highly likely that my dream of using Xamarin to write a Windows/Android application that can interface with a Garmin device highly unlikely. Yes?

  • TamasMatraiTamasMatrai HUUniversity ✭✭
    edited March 2017

    They don't have Xamarin SDK's, they have native IOS and Android one. Windows Phone is unsupported this time.

    Phones can communicate with connect iq Garmin devices via bluetooth.

    So, I have played with Connect IQ + Xamarin IOS, tried to create IOS bindings by sharpie.

    I did it with the following command:
    sharpie bind ConnectIQ.framework/Headers/ConnectIQ.h -sdk iphoneos10.2 -c -F. -v

    It works, and I was able to implement a small test project based on it in Xamarin.

    ...but...

    There is a note in the SDK documentation that says: The framework contains simulator slices that must be stripped out before uploading to iTunes Connect. If the simulator slices are not removed then your app will be rejected by iTunes Connect. The stripSimulatorSlice.sh script is included in the SDK to help with this process. You will need to add a Run Script step under Build Phases after the Embed Frameworks step. Then drag the stripSimulaotrSlice.sh file into the text box to ensure the script is run during the build process.

    It is a huge problem and I don't know how to solve it.

  • AshwiniBokadeAshwiniBokade Member

    @TamasMatrai said:
    They don't have Xamarin SDK's, they have native IOS and Android one. Windows Phone is unsupported this time.

    Phones can communicate with connect iq Garmin devices via bluetooth.

    So, I have played with Connect IQ + Xamarin IOS, tried to create IOS bindings by sharpie.

    I did it with the following command:
    sharpie bind ConnectIQ.framework/Headers/ConnectIQ.h -sdk iphoneos10.2 -c -F. -v

    It works, and I was able to implement a small test project based on it in Xamarin.

    ...but...

    There is a note in the SDK documentation that says: The framework contains simulator slices that must be stripped out before uploading to iTunes Connect. If the simulator slices are not removed then your app will be rejected by iTunes Connect. The stripSimulatorSlice.sh script is included in the SDK to help with this process. You will need to add a Run Script step under Build Phases after the Embed Frameworks step. Then drag the stripSimulaotrSlice.sh file into the text box to ensure the script is run during the build process.

    It is a huge problem and I don't know how to solve it.

    I am also looking for the same solution that allows me to connect my Garmin device to an Android and iOS (Xamarin.Forms) application fetch Garmin device details on my Phone's app.
    Can you please let me know can we do this? If yes then how..
    Thanks in advance

  • AshwiniBokadeAshwiniBokade Member

    @HeathYates said:
    Hi,

    Is it possible to write a Windows Phone and Android application using C# (Xamarin.Forms) and interface with a Garmin device? I am interested in pulling information such as HR and GPS. If not, is it even possible to do this with pure java with the Garmin device?

    I know this is possible with the Microsoft Band. I actually already have this product. Please understand that my question is specific to the Garmin Device. Thanks.

    Have you got the solution?
    Please help. I am looking for the same thing.

Sign In or Register to comment.