Skip to content
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

delete() function for 'blood_pressure' type causes crash in iOS #266

Open
rafaellop opened this issue Oct 26, 2022 · 5 comments
Open

delete() function for 'blood_pressure' type causes crash in iOS #266

rafaellop opened this issue Oct 26, 2022 · 5 comments

Comments

@rafaellop
Copy link

When trying to delete an entry in the Apple Health using the following:

navigator.health.delete({...})

and when the key is 'blood_pressure' then this error is logged:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Authorization to read the following types is disallowed: HKCorrelationTypeIdentifierBloodPressure' terminating with uncaught exception of type NSException

To avoid the issue delete 'blood_pressure_systolic' and 'blood_pressure_diastolic' separately.

@dariosalvi78
Copy link
Owner

I suppose you got R/W access for blood pressure?

@rafaellop
Copy link
Author

Yes, of course. I suppose it's because a similar issue like your fix addressed:
f27d2cb

@dariosalvi78
Copy link
Owner

not sure it's related. Have you tried deleting it with the telerik's plugin? (it's available if you install this plugin too)

@rafaellop
Copy link
Author

No, I haven't tried telerik plugin. I just removed both values (systolic and disatolic) separately and this works.

@dariosalvi78
Copy link
Owner

maybe correlation type values cannot be deleted? Can you try storing a nutrition value and see if it can be deleted?

@dariosalvi78 dariosalvi78 added googlefit-nosupport issue related to Google Fix, which is now unsupported and removed googlefit-nosupport issue related to Google Fix, which is now unsupported labels Jan 12, 2024
@dariosalvi78 dariosalvi78 changed the title delete() function for 'blood_pressure' type causes crash delete() function for 'blood_pressure' type causes crash in iOS Jan 12, 2024
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

No branches or pull requests

2 participants