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 —

  1. Navigation: New tab opening
  2. 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 —

  1. opening of multiple WebView instances (gateway can use upto 3 instances)
  2. usage of cookies (including third party cookie)

❗️

This setup is not tested internally

Unless 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

  1. Groww users will not be able to login with Google. This is because Google SSO does not work inside webview.