Skip to content

Add HealthKit integration #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add HealthKit integration #1

wants to merge 1 commit into from

Conversation

haszz
Copy link

@haszz haszz commented Oct 27, 2024

This PR introduces a new HealthKit integration component to our iOS PWA Shell application. The changes include:

  1. Created a new health-kit-control component (src/components/health-kit.ts) that handles HealthKit interactions.
  2. Updated app-home.ts to include the new HealthKit component.

Key features:

  • Check for iOS HealthKit capability
  • Request HealthKit permissions
  • Request HealthKit data
  • Display HealthKit permission status and received data
  • Log HealthKit-related events

The new component follows the existing code structure and UI design, integrating seamlessly with our current Nord Design System components.

To test:

  1. Run the application on an iOS device or simulator with HealthKit capabilities.
  2. Verify that the HealthKit card appears on the home screen.
  3. Test the "Request HealthKit Permission" and "Request HealthKit Data" buttons.
  4. Confirm that the component correctly displays HealthKit capability, permission status, and received data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants