Publisher login not working in Webview iOS app

snghnishant edited October 2021 in Kite Publisher
We are working on integrating Kite's Publisher for our app to execute BUY/SELL orders through it. Our app is built using Flutter and we are using the flutter_inappwebview package ( which is a popular community package for handling in-app web views inside your app made in flutter. The package is cross-platform compatible and utilises the default respective system webview for Android and iOS. Currently, for Android, we are having no issues in handling the Publisher login, order placement through web view which opens in our app. But for our iOS build when the user tries to log in to the publisher, it asks for credentials and then sends the user to the 2FA page but when they enter the 2FA(TOTP) it sends back to the login page with an error at bottom 'Please complete the login before doing 2FA verification'.

What I have tried so far
- Tried setting the 3rd party cookie option to true as it is set to false by default on iOS, the rest of the options are the same for iOS and Android
- On every URL change I am printing all the cookie store data linked to URI which shows nothing at all when trying to log in
- Same code works fine on Android build

  • Chandani
    Hello, i want to integrate kite's publisher in my flutter app. I am trying to add kite-button java script in my code but somehow i am facing some issue. Could you please tell me how you integrated kite publisher and execute buy/sell using inappwebview. If you will share some example code then it will help for me.
    Thank you
  • sujith
    Kite Publisher is built with web browser in mind. You will have to redirect user to your page and initiate the Publisher from js context.
Sign In or Register to comment.