{"id":32320488,"url":"https://github.com/mariobiuuuu/mbprivacypermissionmanager","last_synced_at":"2025-10-23T11:55:51.934Z","repository":{"id":56920179,"uuid":"112300997","full_name":"MarioBiuuuu/MBPrivacyPermissionManager","owner":"MarioBiuuuu","description":"对隐私权限获取的封装，并包含对健康功能的读写操作","archived":false,"fork":false,"pushed_at":"2017-11-28T08:40:33.000Z","size":34,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-23T11:55:40.128Z","etag":null,"topics":["healthkit","permissions","privacy"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarioBiuuuu.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-11-28T07:25:23.000Z","updated_at":"2021-12-23T09:10:21.000Z","dependencies_parsed_at":"2022-08-21T04:20:15.300Z","dependency_job_id":null,"html_url":"https://github.com/MarioBiuuuu/MBPrivacyPermissionManager","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MarioBiuuuu/MBPrivacyPermissionManager","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBiuuuu%2FMBPrivacyPermissionManager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBiuuuu%2FMBPrivacyPermissionManager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBiuuuu%2FMBPrivacyPermissionManager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBiuuuu%2FMBPrivacyPermissionManager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarioBiuuuu","download_url":"https://codeload.github.com/MarioBiuuuu/MBPrivacyPermissionManager/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarioBiuuuu%2FMBPrivacyPermissionManager/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280614540,"owners_count":26360842,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-23T02:00:06.710Z","response_time":142,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["healthkit","permissions","privacy"],"created_at":"2025-10-23T11:55:48.069Z","updated_at":"2025-10-23T11:55:51.929Z","avatar_url":"https://github.com/MarioBiuuuu.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"pod \"MBPrivacyPermission\"\n\n####简单使用介绍：\n1. MBPrivacyPermissionManager 用来获取隐私权限，具体方法参照注释描述\n2. MBPrivacyHeanlthStoreUtil  用来获取健康功能下相关数据的读写\n     \n    \n**注意点：**\n1.由于iOS10的权限原因,需要在工程的info.plist(右击选择Open as - Source Code)中添加\n\n```\n\u003c!-- 相册 --\u003e   \n\u003ckey\u003eNSPhotoLibraryUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问相册\u003c/string\u003e   \n\u003c!-- 相机 --\u003e   \n\u003ckey\u003eNSCameraUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问相机\u003c/string\u003e   \n\u003c!-- 麦克风 --\u003e   \n\u003ckey\u003eNSMicrophoneUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问麦克风\u003c/string\u003e   \n\u003c!-- 位置 --\u003e   \n\u003ckey\u003eNSLocationUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问位置\u003c/string\u003e   \n\u003c!-- 在使用期间访问位置 --\u003e   \n\u003ckey\u003eNSLocationWhenInUseUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能在使用期间访问位置\u003c/string\u003e   \n\u003c!-- 始终访问位置 --\u003e   \n\u003ckey\u003eNSLocationAlwaysUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能始终访问位置\u003c/string\u003e   \n\u003c!-- 日历 --\u003e   \n\u003ckey\u003eNSCalendarsUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问日历\u003c/string\u003e   \n\u003c!-- 提醒事项 --\u003e   \n\u003ckey\u003eNSRemindersUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问提醒事项\u003c/string\u003e   \n\u003c!-- 运动与健身 --\u003e   \n\u003ckey\u003eNSMotionUsageDescription\u003c/key\u003e  \n \u003cstring\u003eApp需要您的同意,才能访问运动与健身\u003c/string\u003e   \n\u003c!-- 健康更新 --\u003e   \n\u003ckey\u003eNSHealthUpdateUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问健康更新 \u003c/string\u003e   \n\u003c!-- 健康分享 --\u003e   \n\u003ckey\u003eNSHealthShareUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问健康分享\u003c/string\u003e   \n\u003c!-- 蓝牙 --\u003e   \n\u003ckey\u003eNSBluetoothPeripheralUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问蓝牙\u003c/string\u003e   \n\u003c!-- 媒体资料库 --\u003e   \n\u003ckey\u003eNSAppleMusicUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能访问媒体资料库\u003c/string\u003e  \n\u003c!-- 语音识别 --\u003e   \n\u003ckey\u003eNSSpeechRecognitionUsageDescription\u003c/key\u003e   \n\u003cstring\u003eApp需要您的同意,才能使用语音识别\u003c/string\u003e \n\n```\n2.`健康`支持读写操作权限如下:\n\n|    名称    |  HealthKit Identifier Type  |   Read   |   Write   |\n|--------------|-----------------------------|----------|-----------|\n|\t步数\t  | HKQuantityTypeIdentifierStepCount | ✓ | ✓ |\n|\t身高\t  | HKQuantityTypeIdentifierHeight | ✓ | ✓ |\n|\t体重\t  | HKQuantityTypeIdentifierBodyMass | ✓ | ✓ ||\n|\t身高体重指数\t  | HKQuantityTypeIdentifierBodyMassIndex | ✓ | ✓ |\n|\t步行+跑步距离\t| HKQuantityTypeIdentifierDistanceWalkingRunning | ✓ | ✓ |\n|\t已爬楼层  | HKQuantityTypeIdentifierFlightsClimbed | ✓ | ✓ |\n|\t呼吸速率\t| HKQuantityTypeIdentifierRespiratoryRate | ✓ | ✓  |\n|\t膳食能量  | HKQuantityTypeIdentifierDietaryEnergyConsumed | ✓ | ✓ |\n|\t血氧饱和度\t  | HKQuantityTypeIdentifierOxygenSaturation | ✓ |  |\n|\t体温\t  |\t HKQuantityTypeIdentifierBodyTemperature | ✓ | ✓ |\n|\t血糖\t  | HKQuantityTypeIdentifierBloodGlucose | ✓ | ✓ |\n|\t收缩压  | HKQuantityTypeIdentifierBloodPressureSystolic | ✓ | ✓ |\n|\t舒张压  | HKQuantityTypeIdentifierBloodPressureDiastolic | ✓ | ✓ |\n|\t站立小时\t | HKCategoryTypeIdentifierAppleStandHour | ✓ |  |\n|\t性别\t  | HKCharacteristicTypeIdentifierBiologicalSex | ✓ |  |\n|\t出生日期\t  |\t HKCharacteristicTypeIdentifierDateOfBirth | ✓ |  |\n|\t血型\t  |\t HKCharacteristicTypeIdentifierBloodType | ✓ |  |\n|\t日光反应型皮肤类型 | HKCharacteristicTypeIdentifierFitzpatrickSkinType | ✓ |  |\n|\t睡眠分析\t  |\tHKCategoryTypeIdentifierSleepAnalysis | ✓ |  |\n|\t月经\t  | HKCategoryTypeIdentifierMenstrualFlow | ✓ |  |\t\n|\t点滴出血  | HKCategoryTypeIdentifierIntermenstrualBleeding | ✓ |  |\t\n|\t性行为  | HKCategoryTypeIdentifierSexualActivity | ✓ |  |\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariobiuuuu%2Fmbprivacypermissionmanager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmariobiuuuu%2Fmbprivacypermissionmanager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmariobiuuuu%2Fmbprivacypermissionmanager/lists"}