PostHog / posthog-ios

PostHog iOS SDK
https://posthog.com/docs/libraries/ios
MIT License
32 stars 41 forks source link

IDFA AppStore submission issue (new) #6

Closed artshin closed 3 years ago

artshin commented 3 years ago

Hey there,

Just wanted to share some AppStore results of ours with IDFA. Our app is catered towards kids and IDFA tracking is not allowed according to the security guidelines. We used a recent version 1.1.0 of posthog-ios in an AppStore submission. The app was rejected because of this class being used in code even as a static string constant. Since this string is used to dynamically initialize an instance of ASIdentifierManager class, it triggers a rejection from Apple.

This happens even though AdSupport framework is not directly referenced or imported. 100% sure we didn't have AdSupport.framework file in the binary sent to Apple. Reviewed it with https://github.com/MobSF/Mobile-Security-Framework-MobSF

We ended up applying a patch to remove the constant and set the default value for ad tracking to false. After this, a new version of the app was approved.

Hope this helps! Cheers!

mariusandra commented 3 years ago

Hi @artshin , thank you for this explanation! I completely removed all references to the ad support framework with PRs #7 and #8 and published version 1.2.1. Feel free to check it out and report back if it solves the problem for you. Happy to hear that you found a workaround though!