Post

Replies

Boosts

Views

Activity

Reply to Can I access HealthKit data for devices without an Apple ID?
Kevin, HealthKit is meant for a single individual, not 'shared'. HealthKit can be used without an Apple ID. It would be just the same as running on a simulator that isn't signed in. That having been said, while you could technically do it, it is overkill and using HealthKit outside of the intended scope. I'll speculate that the built-in pedometer will also not have super reliable results given the way each user walks is different. This is what generates samples for HealthKit under the hood. If you're going to pursue this concept, I would instead recommend using the CMPedometer API directly, which allows for up to 7-days of historical data.
Dec ’21
Reply to App Clips should support CloudKit for read-only access to the public database
I spoke with both App Clip and CloudKit engineers during WWDC 2021 in lab sessions. They're aware of the request. That having been said the temporary solution that we came to through conversation is to use the CloudKit Web Services. I've decided for my AppClip I can live with read-only access to just the public database. I have this working and have fully mirrored the CKQueryOperation and CKFetchRecordsOperation functionality using the Cloud Kit Web Services API. This is something that I would potentially open source if others are interested in working on it with me as an interim solution until (if) official support happens.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’21
Reply to AppClipCodeGenerator - Compressed URL too large
Their encoder can only fit in so many characters. QR codes have a lot more data storage capability. Check out this link for more details, however there is no clear documentation on the length. I was also looking for a concrete number but it is probably indeterminate. Unfortunately, my domain name is quite long so I'm probably stuck with only a few chars available for my query params :( Apple Documentation: Encoding a url in an app clip code
Topic: App & System Services SubTopic: General Tags:
May ’21
Reply to How many `Advanced App Clip Experiences` can be add?
From the video on creating app clips for other businesses, it seems like it shouldn't be bounded to the number you can make. However there is probably a practical limit. I'd also like to know! Do you want different App Clip Cards, or just the app clip experience to be different once the clip is launched? You could use query params in your URL to control what content is shown in the application.
Topic: App & System Services SubTopic: General Tags:
May ’21
Reply to ASP.Net C# Web App and iOS/Healthkit Step Count
Watching some of the historical WWDC videos about HealthKit would be a great start. Some key classes are: HKSampleQuery HKStatisticsCollectionQuery HKAnchoredObjectQuery HKSampleTypeIdentifier.stepCount, etc. Regarding accessing the data without the user interacting with the app, you'd have to look into background delivery on the HKHealthStore class here - https://developer.apple.com/documentation/healthkit/hkhealthstore/1614175-enablebackgrounddelivery Make sure the user knows that you're doing this :)
Topic: App & System Services SubTopic: General Tags:
Mar ’21
Reply to Can we access user health record from healthkit and get patient fhir data?
You can't access the "Health Profile" the user sets up in the Health app, but you can access the 'Patient' data contained within the FHIR resources and then look at the name property. This will require knowledge of which FHIR release a resource is as well as how to decode the JSON. To learn more about FHIR resources, checkout the official hl7.org/fhir site. For R4 version, here is Apple's GitHub FHIRModels lib. https://github.com/apple/FHIRModels/blob/main/Sources/ModelsR4/Patient.swift#L51
Mar ’21