Can we init Firebase if user has rejected AppTrackingTransparency dialog?

1.7k views Asked by At

Can we init Firebase Analytics if user has rejected AppTrackingTransparency dialog?

As noted here: https://developer.apple.com/app-store/user-privacy-and-data-use/

With iOS 14, iPadOS 14, and tvOS 14, you will need to receive the user’s permission through the AppTrackingTransparency framework to track them or access their device’s advertising identifier. Tracking refers to the act of linking user or device data collected from your app with user or device data collected from other companies’ apps, websites, or offline properties for targeted advertising or advertising measurement purposes. Tracking also refers to sharing user or device data with data brokers.

"you will need to receive the user’s permission through the AppTrackingTransparency framework to track them"

So the problem is not only about using "device’s advertising identifier", the problem is also if you are tracking the user. So, what happens if the user doesn't accept the AppTrackingTransparency dialog? Should I avoid initializing analytics? If so, how can I do that? I'm starting Firebase (push and analytics) with a single line:

FirebaseApp.configure()

So, if it's necessary to stop analytics in case the user has rejected the dialog, how can I stop analytics?

PS: there is a question in Firebase Github, but they are not telling what to do with analytics if user rejects the dialog... https://github.com/firebase/firebase-ios-sdk/issues/5928

0

There are 0 answers