Skip to content
This repository was archived by the owner on Nov 20, 2022. It is now read-only.
This repository was archived by the owner on Nov 20, 2022. It is now read-only.

Wrong name after a track is published #39

@M-Yankov

Description

@M-Yankov

When publish a route to Strava, the name generated is not correct to the chosen activity type.

Example steps:

  • Publish route
    • empty name
    • and different type activity (ski, canoe, blabla)
  • The activity name is "Morning run", but you go ski.

Why that happens:

Step one: When uploading a route (gpx) without name, Strava generates the name depending on the time taken and the default sport configured in the profile.
If your default sport is "Ride" and you do it in the morning (before 12:00 am) the name will be "Morning ride".
The second step that SimpleTracker does is to update the activity with providing "isMuted", "type" and clear the associated gear (user can fix it later). But name is still as the same from the first step.

The solutions

  • Put complex logic to determine "Morning, Lunch, Afternoon, Evening..." depending on the time taken, and add the chosen sport type. When send the update use the provided name.
  • Add a static name: for example "Activity", "Sport"

Workarounds

  • Provide a name when publishing to Strava
  • Mute the activity when publishing to Strava, and then edit in Strava the name

Metadata

Metadata

Assignees

No one assigned

    Labels

    StravaAll issues related to Strava integrationbugSomething isn't workingcomplexToo complex. Violates the "simple" idea of the project. Keep known issues.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions