RADAR-base / RADAR-Questionnaire

Questionnaire mobile application (Active App) for RADAR-base
https://radar-base.org/
Apache License 2.0
18 stars 15 forks source link

HealthKit permissions only requested once #1799

Open mpgxvii opened 1 month ago

mpgxvii commented 1 month ago

The Apple Healthkit Permission screen will only be shown once. If the user denies HK permissions, there will be no data in the query results and permissions will not be requested again even if the app calls the HK requestAuthorization method.

There could be two solutions for this:

  1. We can explicitly tell the user to make sure this is enabled in the Health app.
  2. We can check the results of the query, and if there is no data, the user either has permissions disabled or there is no data for the user for that time period. If there is no data, we can just ask the user to check permissions. Possible message:
    We did not receive any data from Apple Health. Can you please check that permission in the Apple Health app are enabled for RADAR Questionnaire app. <Add detailed instructions>