xamarin / GoogleApisForiOSComponents

MIT License
225 stars 161 forks source link

How to disable automatic collection of IDFA in Firebase Analytics SDK #470

Open PaulsonM opened 3 years ago

PaulsonM commented 3 years ago

I'm using Firebase Analytics SDK (Xamarin.Firebase.iOS.Analytics 6.9.0) in my Xamarin.Forms App.

We want to disable IDFA collection due to recent iOS 14 user privacy requirements. Can you kindly let me know how this can be achieved ?

I could see the AdSupport class in the Xamarin.iOS.dll, but I couldn't find any relevant information nor have a clue as to how I can ensure that this AdSupport class can be excluded from the app so that IDFA won't be utilized by the Firebase Analytics SDK.

I found that the Google Analytics SDK (Xamarin.Google.iOS.Analytics 3.17.0.6) has a property to enable IDFA collection and as per my understanding the IDFA collection is disabled by default in this SDK.

Please let me know how I can disable IDFA in the Firebase Analytics SDK? Thanks

PaulsonM commented 3 years ago

The Age, Gender, and Interests properties are automatically collected only if your app links to the Ad Support framework. Linking to this framework also automatically collects the Advertising Identifier (IDFA).

Quoting the docs, so does the AdSupport framework get linked automatically to the app from the Xamarin.iOS.dll? If so, to disable the IDFA, is there any other way other than to remove the SDK from the app?

vhugogarcia commented 3 years ago

Hello @PaulsonM ,

I'm facing the same issue. Did you find a way to solve the issue?

karak commented 3 years ago

I'd like to know this. It's so sensitive that we should have some standard solution.

sb111111111 commented 1 year ago

Hi did you get any answer to this?