Skip to content

Add Clinical Records support again - opt-in with the Expo Config Plugin #68

@robertherber

Description

@robertherber

We have an old branch with health record implemented, but it was removed because it can be a blocker for app submissions if not actually using it.

I think it'd now be possible to lift this back in again - by extending the Expo Config Plugin to support opt-in to use this API. As part of this we need to make sure the Swift code referring to this is only included if the developer opts-in to use it.

The most natural way to include it would probably be to support setting the following info.plist entries in the config plugin, and only if these properties are set include the needed Swift code in the binary:

{
  "expo": {
    "plugins": [
      ["@kingstinct/react-native-healthkit", {
        "NSHealthClinicalHealthRecordsShareUsageDescription": "Your own custom usage description",
        "NSHealthRequiredReadAuthorizationTypeIdentifiers": ["allergyRecord"]
      }]
    ]
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions