You will have to use Kite Publisher for that. You can know more here. You can take a look at the demo here. Basically, you need to open your webpage which will invoke the Kite Publisher with all the params.
Now the above issue is resolved and I am able to load login page of Zerodha in WebView. But after, entering PIN I am getting below two errors :
Failed to load resource: the server responded with a status of 400 () Blocked autofocusing on a form control in a cross-origin subframe. chunk-vendors.ea6114a1.js:35
I have trade button in .js file and I have loaded .js file in Android WebView. I will post video soon. On Website it is working fine. I am facing problem with webview only.
I also tried by using URL. But facing same issue. It is redirected to Login page. And debugger shows error Failed to load resource: the server responded with a status of 400 () Blocked autofocusing on a form control in a cross-origin subframe. chunk-vendors.ea6114a1.js:35
Basically, you need to open your webpage which will invoke the Kite Publisher with all the params.
Webpage not available
https://kite.trade/connect/login?sess_id=Vk6Wr9.......
could not be loaded because :
net: ERR_BLOCKED_BY_RESPONSE
I tried debugging this error by enabling WebView debug, then after inspecting I received below error
Refused to frame 'https://kite.zerodha.com/' because an ancestor violates the following Content Security Policy directive: "frame-ancestors 'self' https://microapps.google.com/".
Please help.
But after, entering PIN I am getting below two errors :
Failed to load resource: the server responded with a status of 400 ()
Blocked autofocusing on a form control in a cross-origin subframe. chunk-vendors.ea6114a1.js:35
Failed to load resource: the server responded with a status of 400 ()
Blocked autofocusing on a form control in a cross-origin subframe. chunk-vendors.ea6114a1.js:35