File tree Expand file tree Collapse file tree
libs/SalesforceSDK/src/com/salesforce/androidsdk/ui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -152,6 +152,7 @@ import kotlinx.coroutines.Dispatchers.Default
152152import kotlinx.coroutines.Dispatchers.IO
153153import kotlinx.coroutines.launch
154154import org.json.JSONObject
155+ import java.lang.String.format
155156import java.net.URI
156157import java.net.URLDecoder
157158import java.net.URLEncoder
@@ -191,9 +192,16 @@ open class LoginActivity : FragmentActivity() {
191192 webViewClient = this @LoginActivity.webViewClient
192193 webChromeClient = this @LoginActivity.webChromeClient
193194 setBackgroundColor(Color .Transparent .toArgb())
194- settings.domStorageEnabled = true /* Salesforce Welcome Discovery requires this */
195- @SuppressLint(" SetJavaScriptEnabled" )
196- settings.javaScriptEnabled = true
195+ settings.apply {
196+ domStorageEnabled = true /* Salesforce Welcome Discovery requires this */
197+ @SuppressLint(" SetJavaScriptEnabled" )
198+ javaScriptEnabled = true
199+ userAgentString = format(
200+ " %s %s" ,
201+ SalesforceSDKManager .getInstance().userAgent,
202+ userAgentString ? : " " ,
203+ )
204+ }
197205 }
198206 }
199207
You can’t perform that action at this time.
0 commit comments