How to bypass duplicate login for Android (Kite Connect & Publisher)

Tamalk
Tamalk edited February 2022 in Kite Publisher
We have integrated Kite Connect & Kite Publisher in our App. At the time of Login to Kite Connect the User has marked "Login to Kite Web also?" as true but after Login when the User placing order via Kite Publisher you are opening an in App modal & again asking the User to Login via User Id, Password & TOTP. Please suggest some solution for the same.
  • sujith
    Aren't you making people login from same webview? Are you opening browser for login?
    Have you enabled cookies?
  • sujith
    Make sure you don't clear webview cookies every time it is opened.
  • Tamalk
    Tamalk edited February 2022


    1st of all when the User clicks on Login Button (Android Device) we are opening "https://kite.zerodha.com/connect/login?sess_id=XXXXXXXX&api_key=XXXXXX" in Chrome Browser. After that the User gives Login ID, Password & also mark "Login to Kite Web also?" as true and submit with TOTP. Then we will show all the Menus like Place Order, Order Book, Margin etc. to the User. Then the User clicks on Place Order & fill all the required information for a Stock to Place a Buy/Sell Order and clicks on Submit Button now when calling Publisher JS, your Publisher JS is opening an In App Modal & again asking the User to Login via User Id, Password & TOTP. This is the actual issue, please provide some solution to bypass this duplicate login issue.
  • sujith
    What is the app modal? Is it a webview, a chrome tab or a browser?
  • Tamalk
    Tamalk edited February 2022

    Your Publisher JS is not opening in Chrome (Default Browser for Android). It is opening in-app modal. Please find attached.
  • Tamalk
    In-app modal is Webview
  • sujith
    You will have to initiate login also on webview.
Sign In or Register to comment.