I want to identify all sample data which one coming from Dexcom CGM applications. I can use HKSourceRevision but if that so i need to put filtration for all bundle id which one belongs from CGM,Since we are not sure if they have more applications on later stage then again, we need to add it from code level.
let query = HKSourceQuery(sampleType: type,samplePredicate: predicate) { query, sources, error in
let desiredSources = sources?.filter {!$0.bundleIdentifier.starts(with: "com.cgmbundleid")}
let sourcePredicate = HKQuery.predicateForObjects(from: desiredSources!)
}
Any other way to identify the data from Dexcom CGM which one synched to apple health.