Guide: JS SDK + WebView
A WebView is an embedded browser in native application to display web content. But there are some browser default behaviour which are not allowed by default in a WebView.
Two such things which are necessary for Gateway's JavaScript SDK to function are —
- Navigation: New tab opening
- Sessions: Usage of cookie (including third party cookies)
For Gateway's JS SDK to function properly from within a WebView, both of these must be enabled —
- opening of multiple WebView instances (gateway can use upto 3 instances)
- usage of cookies (including third party cookie)
This setup is not tested internallyUnless absolutely necessary, we recommend against use of JS SDK + WebView setup.
If this is the only way forward, please know - Gateway team do not test this setup in our release cycles.
Known issues
- Groww users will not be able to login with Google. This is because Google SSO does not work inside webview.