Using Web SDK with WebView¶
Warning
This document describes how to use WebView for those who have installed the Web SDK. iOS SDK or Android SDK users should refer to WebView .
Web SDK configurations¶
By using the allow_webview
option, you can activate the Web SDK in In-app WebViews.
reproio('setup', 'YOUR_REPRO_SDK_TOKEN', { allow_webview: true });
See also: API
Necessary configurations on the App¶
For Repro Web to properly work in WebView environments it may be necessary to do certain configurations on the App side in some cases. Please read through the below details and properly configure your application and Web SDK accordingly depending on the platform you wish to activate Repro Web. Please also refer to each platforms' official documents for more details.
Android (WebView)¶
Set true to
setJavaScriptEnabled
Set true to
setDomStorageEnabled
Android (Chrome Custom Tab)¶
No special configuration is needed
Warning
Important notes
Depending on the end-user's environment the web page may be opened by different browsers than Chrome. In such cases, Repro Web will not run on browsers that are not supported by the Web SDK.
Due to the fact the session is shared with Chrome app, it could result in the Device ID being the same between Apps and browsers on the same device.
iOS (WKWebView)¶
Set true to
javaScriptEnabled
Warning
Important notes
When using different instances of
WKWebsiteDataStore
to each component Cookies will not be shared across them, which could result in users being identified separately without setting the User ID.When using different instances of
WKWebsiteDataStore
to each component Cookie and localStorage will not be shared across them, which could result in users being identified separately without setting the User ID.
iOS (UIWebView)¶
No special configuration is needed
Warning
Important notes
As opposed to
WKWebView
, Cookie will be shared across different components resulting in the user being identified as the same user.In order to shared Cookie data with Safari on iOS 11 and after
SFAuthenticationSession
needs to be activated.
iOS (SafariView)¶
Set true to
javaScriptEnabled
Warning
Important notes
As opposed to
WKWebView
, Cookie will be shared across different components resulting in the user being identified as the same user.