google / gtm-session-fetcher

Google Toolbox for Mac - Session Fetcher
Apache License 2.0
245 stars 148 forks source link

iOS 17 New required reason API #360

Closed lakshmankreditbee closed 9 months ago

lakshmankreditbee commented 1 year ago

From Apple's newly published document "Describing use of required reason API":

Your app or third-party SDK must declare one or more approved reasons that accurately reflect your use of each of these APIs and the data derived from their use. You may use these APIs and the data derived from their use for the declared reasons only. These declared reasons must be consistent with your app’s functionality as presented to users, and you may not use the APIs or derived data for tracking.

Will gtm-session-fetcher sdk be either removing the use of these APIs or providing a privacy manifest file for the iOS SDK? Or perhaps are you in contact with Apple about this issue?

thomasvl commented 1 year ago

Thanks for the issue. We are tracking this internally and will address it a little later this year.

nabs-m commented 10 months ago

Hey @thomasvl, is this still planned for this year?

thomasvl commented 10 months ago

We're working on this internally, not sure it will make the end of the year.

I think I see a path for making this work with CocoaPods (so it gets picked up as a resource correctly for Xcode), but I can't find anything in Apple's docs about how to do this properly with SwiftPM. If anyone has pointers for how to do this correctly for Xcode+SwiftPM integration, it would be much appreciated.

nabs-m commented 10 months ago

Thanks for the update @thomasvl. I also don't know how to do this for SwiftPM, but if it helps you confirm things for CocoaPods, I was working on enabling the same thing in another library earlier. I believe you'd just need to add the following in the .podspec (under the appropriate subspec of course):

sp.resource_bundle = {'Framework name' => ['Path/to/PrivacyInfo.xcprivacy']}

I didn't get the chance to test it yet, but it's based off this.

thomasvl commented 10 months ago

Thanks, yup, that's basically what I was looking at for CocoaPods.

nabs-m commented 10 months ago

@thomasvl Does this maybe help for SPM? https://github.com/airbnb/lottie-ios/pull/2252/files#diff-f913940c58e8744a2af1c68b909bb6383e49007e6c5a12fb03104a9006ae677eR22

thomasvl commented 10 months ago

@thomasvl Does this maybe help for SPM? https://github.com/airbnb/lottie-ios/pull/2252/files#diff-f913940c58e8744a2af1c68b909bb6383e49007e6c5a12fb03104a9006ae677eR22

Thanks, looks like it might.

lakshmankreditbee commented 9 months ago

Hi, when can we expect an update regarding this issue?

thomasvl commented 9 months ago

Working on it, but no specific ETA, some things with Google being worked through.