get Step Data Sources
Returns the apps and devices that have contributed step-count data to HealthKit.
Each HealthKitDataSource includes the source’s name and bundle identifier. This is useful for diagnostics — e.g. confirming that the Apple Watch or a third-party pedometer app is contributing steps.
Returns an empty list on Android (Health Connect does not expose source metadata in the same way) or if HealthKit is unavailable.
Swift
let sources = try await AFCore.shared.smartWalking().getStepDataSources()
for source in sources {
print("\(source.name) — \(source.bundleId ?? "unknown")")
}Content copied to clipboard
Return
A list of HealthKitDataSource entries, or empty on Android.