Get a head start preparing for the Apple Watch by prototyping the look of your app!
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/2168-preparing-for-the-apple-watch-a-prototype-heartbeat-app
Get a head start preparing for the Apple Watch by prototyping the look of your app!
how to use heart rate sensor when app is closed and send an alert/notification when heart rare is high
@varun_aaruru You won’t be able to receive a realtime heart rate notification for a closed app in watchOS 3. However, there is a workaround! You can periodically run a WKApplicationRefreshBackgroundTask
to check the heart rate data stored in HealthKit. If the user has your app installed as a complication on their current clock face, then you can perform the background check at least 50 times a day.
This tutorial is more than six months old so questions are no longer supported at the moment for it. Thank you! :]