@@ -50,6 +50,7 @@ class QonversionConfig internal constructor(
50
50
internal var entitlementsUpdateListener: QEntitlementsUpdateListener ? = null
51
51
internal var proxyUrl: String? = null
52
52
internal var isKidsMode: Boolean = false
53
+ internal var sendFbAttribution: Boolean = true
53
54
@RawRes
54
55
internal var fallbackFileIdentifier: Int? = null
55
56
@@ -133,6 +134,15 @@ class QonversionConfig internal constructor(
133
134
this .isKidsMode = true
134
135
}
135
136
137
+ /* *
138
+ * Use this function to disable tracking of Facebook Attribution ID.
139
+ * It may be helpful if you face "Social Account information tracking without
140
+ * a prominent disclosure" warning during the Google Play Review.
141
+ */
142
+ fun disableFacebookAttribution (): Builder = apply {
143
+ sendFbAttribution = false
144
+ }
145
+
136
146
/* *
137
147
* Generate [QonversionConfig] instance with all the provided configurations.
138
148
* This method also validates some of the provided data.
@@ -150,7 +160,7 @@ class QonversionConfig internal constructor(
150
160
Log .w(" Qonversion" , " Environment level is set to Sandbox for release build." )
151
161
}
152
162
153
- val primaryConfig = PrimaryConfig (projectKey, launchMode, environment, proxyUrl, isKidsMode)
163
+ val primaryConfig = PrimaryConfig (projectKey, launchMode, environment, proxyUrl, isKidsMode, sendFbAttribution )
154
164
val cacheConfig = CacheConfig (entitlementsCacheLifetime, fallbackFileIdentifier)
155
165
156
166
return QonversionConfig (
0 commit comments