-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Only stationary activityType from most recent TimelineItem #81
Comments
The first thing I'd check is whether samples are being classified at recording time. The As long as the Though It'd also be worth printing the Let me know you get on! |
@sobri909 .. actually I'm not using classifier lazy var recorder :TimelineRecorder = { |
Ah, without a classifier, samples and items won't have a activity types. That'll be the problem 😉 |
Hi Matt,
I'm trying to fetch most recent "TimelineItem" and I'm getting it... but every time I'm getting activityType either stationary or nil. Please help me on this. Thanks in advance.
if let mostRecentItem = self.store.mostRecentItem {
printDebug("=========================================")
printDebug("item (mostRecentItem)")
printDebug("item modeMovingActivityType (String(describing: mostRecentItem.modeMovingActivityType))")
printDebug("item activityType (String(describing: mostRecentItem.activityType))")
printDebug("item modeActivityType (String(describing: mostRecentItem.modeActivityType))")
printDebug("item startDate (String(describing: mostRecentItem.startDate))")
printDebug("item endDate (String(describing: mostRecentItem.endDate))")
printDebug("item duration (mostRecentItem.duration)")
printDebug("item stepCount (String(describing: mostRecentItem.stepCount))")
}
The text was updated successfully, but these errors were encountered: