Skip to content

Commit

Permalink
twa add extra params
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedshortcut committed Mar 11, 2022
1 parent 74c6051 commit 1658d12
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class InitializationActivity : BaseActivity() {
.setTWAInfo(TWAModel(url = "https://codigoanalytics.azurewebsites.net/test/GetLatestData").apply {
extraParams.apply {
put("customCustomerParam","foo")
put("siteid","F53C7A3D-013D-4B89-A1C1-E697DC724467")
}
})
.build()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package se.kantarsifo.mobileanalytics.sampleapp.util

object Constants {
const val CODIGO_CPID = "F53C7A3D013D4B89A1C1E697DC724467"
const val CODIGO_CPID = "F53C7A3D-013D-4B89-A1C1-E697DC724467"
const val LOG_TAG = "mobileAnalyticsLog"
const val CPID_PREFERENCE = "cpid"
const val APP_NAME_PREFERENCE = "app_name"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,7 @@ internal class TagDataRequestHandler : TagDataRequestCallbackListener {
twaInfo = twaInfo,
context = context,
trackPanelistOnly = trackPanelistOnly,
isWebViewBased = isWebBased,
cpId = cpId
isWebViewBased = isWebBased
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,7 @@ internal class TrustedWebHandler(
private var twaInfo:TWAModel,
private val context: Context,
private val trackPanelistOnly:Boolean,
private val isWebViewBased:Boolean,
private val cpId:String
private val isWebViewBased:Boolean
) {

fun open() {
Expand All @@ -32,7 +31,6 @@ internal class TrustedWebHandler(
}
try {
val uri = Uri.parse(url).buildUpon()
.appendQueryParameter("siteid",cpId)
.appendQueryParameter("isWebViewBased",isWebViewBased.toString())
.appendQueryParameter("sdkVersion",BuildConfig.VERSION_NAME)
.appendQueryParameter("appVersion", context.getApplicationVersion())
Expand Down

0 comments on commit 1658d12

Please sign in to comment.