Post

Replies

Boosts

Views

Activity

Read the sleep schedule using HealthKit
Using the Health app, the user can define a bedtime and a wake up time. Can we get this data using the HealthKit framework? I'm not interested in the actual time the user spent in bed, but in the time the user scheduled to go to bed, so different kinds of data. Unfortunately I could not find anything in the documentation: https://developer.apple.com/documentation/healthkit/data_types https://developer.apple.com/documentation/sirikit/infocusstatus
0
2
1.2k
Apr ’23
Update live activity without push notifications and with the app in background
Is there any other way to update the live activities besides using push notifications when the app is in background? Is it possible to schedule an update, for example? For context, I have a live activity that needs the content updated 2 hours after it's creation. I know that the best way to do it is using a push notification, but right now I don’t have the resources to implement this. I already tried using BackgroundTasks, but they are not very reliable, so I can't trust it.
1
2
1.6k
Oct ’22