Giter Club home page Giter Club logo

Comments (20)

truizlop avatar truizlop commented on June 11, 2024

Can you provide a source in Strava docs where they state they support this in their API? If so, I'll be happy to include it.

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

thank you for the quick reply. Indeed their APIs are not updated, however the activity type is supported (can be selected as manual activity, and is automatically selected when using a third party app like Zwift). In any case it would be useful if the virtual run would be read by the library as run (if not as virtual run), because it does not make sense that it becomes a ride. I hope this clarifies, thank you.

p.s. I can for example use the type correctly using the library I use on iOS, but not using this library on Android (so the type is supported on their end, despite the lack of documentation unfortunately)

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

Do you have an example of a JSON response that includes a virtual run? Or can you point out the library you are using on iOS that handles this properly?

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

I use this library: https://github.com/sebastienwindal/FRDStravaClient which works despite not being updated in 4 years, it could be that they simply 'carry the activity type' instead of forcing a match to some pre-defined categories. Makes sense?

To reproduce this you could simply go on Strava and create a manual activity, of type Virtual Run (no need to have an actual activity file), then read it with your library. When I do so, I end up with a Ride, let me know if you cannot reproduce the problem, and I'll try to dig a little more, thanks again for your help.

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

When you read the type field on the iOS library, what is the String value for the virtual run? Is is VirtualRun?

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

Ok, I've updated the library to version 1.3.1 with this activity type. I think that will work, but let me know if it doesn't. Close the issue when you check it out. Thanks!

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

I had to change build tools and some other things in gradle. Can you post your build tools, target sdk number, etc? I can then configure a project with your settings and see what's going on

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

just FYI I was using 1.0.2. without issues and the same applies to the latest versions before this one (1.2 and 1.3), but I can't seem to get 1.3.1 to work.

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

Which version of Gradle for Android are you using? I updated it to 3.1.1 in the last release. I've tested it with the sample project, compile and target SDKs to 26, build tools 27.0.3 (minimum supported for the gradle version I'm using) and it works correctly.

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

It seems that might be the issue. Is it possible for you to update it to the latest version? Otherwise, could you paste the specific error you are getting?

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

truizlop avatar truizlop commented on June 11, 2024

Great to hear that and sorry for all the inconveniences; I hope you can make good use of the library. Just in case, as you mentioned you were using another library for iOS, we have an implementation of this library in Swift, with a very similar API, that you can find here. Please, close the issue when you think it's done.

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

marcoalt avatar marcoalt commented on June 11, 2024

from stravazpot-android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.