Comments (20)
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.
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.
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.
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.
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.
from stravazpot-android.
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.
from stravazpot-android.
from stravazpot-android.
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.
from stravazpot-android.
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.
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.
from stravazpot-android.
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.
from stravazpot-android.
from stravazpot-android.
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.
from stravazpot-android.
from stravazpot-android.
Related Issues (20)
- Logout?
- Question abut token HOT 1
- Upload API: com.google.gson.stream.MalformedJsonException HOT 7
- State field missing
- Is there any function that can deauthorize? , seems like there is no deauthorize function on new released version HOT 13
- Error with OAuth HOT 1
- Retrofit response caching HOT 1
- dependencies aren't downloading in version 1.3.1 HOT 2
- What to put in redirect uri and CODE HOT 5
- Refresh Token Update HOT 1
- ERR_TOO_MANY_REDIRECTS
- java.lang.NumberFormatException: Expected an int but was 2158942700 at line 1 column 302 path $[0].upload_id HOT 7
- Issue sending TXC file
- Support new Oauth authentication
- Number of activities in Strava exceed Integer MAX_VALUE
- Facebook login page layout
- Issues with Getting Segments HOT 4
- Error at Sign in with Google HOT 5
- Segment.getMap does not have polyline field. HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stravazpot-android.