In my app, athletes can connect their Strava, Garmin Connect and COROS accounts to, among other things, capture completed activities. So if they've connected both Strava and, say, Garmin, then when they complete workouts, we'll receive activity records from both accounts. Problem is we only want the workout to appear once in their calendars, and to accomplish this, I've used date/time and other logic to try to detect duplicates. But that isn't foolproof since start time, distance and completion time can all be different for the same workout.
Is there anything available in the Activity record that would definitively say which device activity record it's associated with, or is there a more robust way to associate the two records? I see there's an external_id field, but sometimes it references a ping record, sometimes it references a FIT file, and sometimes it's empty. It used to contain the Garmin activity ID which directly referenced the ID in Garmin's record, and that was perfect, but it doesn't seem to be happening anymore.
Thanks,
Louis
Strava Paid Subscriber