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

Fix healthkit support for iOS > 16.1 #125

Merged
merged 1 commit into from
Nov 12, 2024
Merged

Conversation

bryansoftdev
Copy link
Contributor

@bryansoftdev bryansoftdev commented Nov 12, 2024

Now inserts the sync_identity column for iOS 16.2 and above, where this column is now required. For earlier versions, the code omits sync_identity to maintain compatibility. I tried to follow similar logic to the rest of the code.

I tested by running the following command on iOS versions 16.1, 16.2, and 18.1:
applesimutils --byId $SIM --bundle com.my.app --setPermissions health=YES

Saw error from #123 went away, and confirmed that the app bypassed the HealthKit permissions pop up.

@asafkorem asafkorem self-assigned this Nov 12, 2024
@asafkorem
Copy link
Contributor

amazing contribution, thanks for that. I will review it today!

NSMutableString* query;
NSMutableString* values;
NSMutableDictionary* baseParams;
if (osVersion.majorVersion > 16 || (osVersion.majorVersion == 16 && osVersion.minorVersion > 1))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@asafkorem asafkorem merged commit 53bc4dd into wix:master Nov 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

Successfully merging this pull request may close these issues.

2 participants