FirebaseAnalytics.setAnalyticsCollectionEnabled() equivalent for iOS

878 views
Skip to first unread message

Troy Mcilvena

unread,
Oct 10, 2016, 11:20:18 AM10/10/16
to Firebase Google Group
Ref: https://firebase.google.com/docs/reference/android/com/google/firebase/analytics/FirebaseAnalytics.html#setAnalyticsCollectionEnabled(boolean)

The Firebase Analytics Use Policy states:

You are required to notify your App Users by disclosing the following information:
    • How App Users can opt-out of the Firebase Analytics...
On Android, the automatically collected data can be disabled using setAnalyticsCollectionEnabled. However, there doesn't appear to be an equivalent API method in the iOS SDK.

How should this be achieved with iOS?

Thanks,

Troy.

Alex Do

unread,
Oct 10, 2016, 11:32:09 AM10/10/16
to Firebase Google Group
On iOS, you can disable Analytics by adding this
[[FIRAnalyticsConfiguration sharedInstance] setAnalyticsCollectionEnabled:YES]

Alex Do

unread,
Oct 10, 2016, 11:32:54 AM10/10/16
to Firebase Google Group
Sorry, I meant [[FIRAnalyticsConfiguration sharedInstance] setAnalyticsCollectionEnabled:NO]
Reply all
Reply to author
Forward
0 new messages