Comments (8)
That is weird, I just tested it and it seems to work for me. Are you sure it does not sync? Where have you checked?
from outrun.
Yes, I just checked Cycling Distance data in Apple Health and the last data was saved before I update to version 1.2. Workouts data are saved without any problem.
It may be happening because I didn't give OutRun permission to save data to Steps category in Apple Health. Health app already have access to iPhone's Motion Tracking capability to automatically save steps data, so I didn't want duplicate data in Apple Health.
from outrun.
So how it should work today is, when saving a workout the app checks if it has all the permissions it requested, otherwise it should not save anything, this is obviously a point of improvement, but seemed right at the time of coding it.
What's going on in your case I have no idea, normally when even one permission to write or read is missing, the saving of anything shouldn't work.
Maybe for clarity: Do any of the other samples get saved, so does the workout have an attached route, calories or steps sample?
At last just a side note: The app retrieves steps the same way the system does (from a system service), so there should be not difference in the data and if there are two samples at the same time (from the system and OutRun) it just picks one to avoid incorrect data.
from outrun.
Yes, it is saving Workouts data, but it seems to not be including the Cycling Distance sample in the Workout sample, even it showing the total cycling distance correctly. The same is occurring with Active Energy as well. However the Workout sample has the route data though.
I had already imagined that iOS would choose a Steps data at a certain time to avoid duplicating data that would result in incorrect information in the Health app, but I was not willing to try that.
from outrun.
Okay after looking into it for a bit the only possible thing I could come up with is that in the process of saving the samples (which are all saved together) it fails because there is no permission for the steps sample. The other samples will get attached to the workout but not properly saved?
There is a question mark after the last part because I cannot explain it to myself, that is not how the system is supposed to work.
I will have to do a bit of testing to confirm my theory and to come up with a possible solution. Just one last question: Have you tried it while steps are enabled and if so does the issue persist?
from outrun.
from outrun.
from outrun.
There seems to be an overall problem regarding the synchronisation with Apple Health, so I created another issue to keep track of the whole problem in one thread.
Please refer to #14 for future updates.
from outrun.
Related Issues (20)
- Potentially incorrect prompt label when deleting workout HOT 2
- DataQueryManager.queryStats is too slow when loading more than one-hour workout data
- What’s pedal strokes for manual cycling workout HOT 3
- WorkoutMapImageRequest takes too long to load map image HOT 1
- WorkoutMapImageManager crashes on processQueue.resume()
- Cadence
- Bluetooth sensors support HOT 2
- Crashes constantly
- Shortcuts Support HOT 2
- Add totals feature. Miles cycled this week/month/year, miles ran this week/month/year. All time totals, etc. HOT 1
- Weight number changes after being set by user
- Live Activity for home screen HOT 1
- Full Apple HealthKit Support / Full Data Write to Apple Health
- App does not run beyond setup HOT 5
- Screen goes blank after a while
- Negative duration of workout HOT 2
- Documentation for orbup format? HOT 1
- Recording data fails after 50 km
- Is this project dead? HOT 2
- Question: difference between walking and hiking. HOT 2
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 outrun.