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

[iOS] privacy-related API usage #73

Closed
troZee opened this issue Jul 31, 2023 · 2 comments
Closed

[iOS] privacy-related API usage #73

troZee opened this issue Jul 31, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@troZee
Copy link

troZee commented Jul 31, 2023

Description

NO MAINTAINER ACTION REQUIRED. PLEASE READ THE APPLE DOCUMENTATION PROVIDED IN THIS ISSUE, IF YOU WOULD LIKE TO USE THIS LIBRARY IN YOUR APP

https://developer.apple.com/news/?id=z6fu1dcu

API used in this library
https://github.com/alpha0010/react-native-file-access/blob/master/ios/FileAccess.swift#L136C45-L136C55
https://github.com/alpha0010/react-native-file-access/blob/master/ios/FileAccess.swift#L135

Details

The following APIs for accessing the available disk space require reasons for use. Use the string NSPrivacyAccessedAPICategoryDiskSpace as the value for the NSPrivacyAccessedAPIType key in your NSPrivacyAccessedAPITypes dictionary.

https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api#4278397

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
  <key>NSPrivacyAccessedAPITypes</key>
  <array>
    <dict>
      <key>NSPrivacyAccessedAPIType</key>
      <string>NSPrivacyAccessedAPICategoryDiskSpace</string>
      <key>NSPrivacyAccessedAPITypeReasons</key>
      <array>
        <string>E174.1</string>
      </array>
    </dict>
  </array>
</dict>
</plist>

Affected API
https://developer.apple.com/documentation/foundation/fileattributekey/1410126-systemfreesize
https://developer.apple.com/documentation/foundation/fileattributekey/1415888-systemsize

@troZee troZee added the bug Something isn't working label Jul 31, 2023
@hoshomoh
Copy link

Maybe this should be added to the README?

@xamplum
Copy link

xamplum commented Apr 16, 2024

actually, this should be provided by this package: see: https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_data_use_in_privacy_manifests

Important

Third-party SDKs need to provide their own privacy manifest files that record the types of data they collect. Your app’s privacy manifest file doesn’t need to cover data collected by third-party SDKs that your app links to.

Could a corresponding privacy manifest be included in the repo please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants