mixpanel / mixpanel-flutter

Official Flutter Tracking Library for Mixpanel Analytics
https://mixpanel.com
Apache License 2.0
68 stars 75 forks source link

Inclusion of PrivacyInfo.xcprivacy in Mixpanel Flutter Package for iOS #145

Open himanshu-newstok opened 7 months ago

himanshu-newstok commented 7 months ago

Apple recently announced a new requirement stating that third-party SDKs utilizing platform APIs must include PrivacyInfo.xcprivacy in their packages for iOS integration. Given Mixpanel's integration with iOS platforms, it's important to address this requirement to ensure compliance.

I would like to inquire whether Mixpanel intends to include PrivacyInfo.xcprivacy in its Flutter package for iOS. Could the Mixpanel team provide insights on whether this addition is necessary or if there are any plans to incorporate it in the future?

Your clarification on this matter would be greatly appreciated.

DaVaMa1 commented 7 months ago

Running this analyzer gives me a warning of a possible missing declaration:

Analyzing Mixpanel-swift ...
⚠️  Missing privacy manifest file!
API usage analysis result(s): 5
[0] NSPrivacyAccessedAPICategoryUserDefaults:UserDefaults:./ios/Pods/Mixpanel-swift/Sources/AutomaticEvents.swift
[1] NSPrivacyAccessedAPICategoryUserDefaults:UserDefaults:./ios/Pods/Mixpanel-swift/Sources/MixpanelInstance.swift
[2] NSPrivacyAccessedAPICategoryUserDefaults:UserDefaults:./ios/Pods/Mixpanel-swift/Sources/MixpanelPersistence.swift
[3] NSPrivacyAccessedAPICategoryUserDefaults:UserDefaults:./ios/Pods/Mixpanel-swift/Sources/People.swift
[4] NSPrivacyAccessedAPICategoryUserDefaults:UserDefaults:./ios/Pods/Mixpanel-swift/Sources/Track.swift
🛠️  Descriptions for the following required API reason(s) may be missing: 1
[0] NSPrivacyAccessedAPICategoryUserDefaults

Could you please validate if you think this is correct and if so implement the necessary file?

himanshu-newstok commented 7 months ago

So the latest mixpanel_flutter package already have the privacy file included. I have consulted with the mixpanel team and they said to switch to ios sdk 4.2.3 or higher. And in latest version of mixpanel_flutter they uses 4.2.5 ios sdk. image

It's just that can't switch to latest versionn due to package constraint upgrade js to 0.7.1 #138. In my project many other packages like google_mobile_ads, google_maps_flutter etc uses js below 0.7.1 causing conflicts.

It will be great if the mixpanel team can approve the pr #142