Good day. In android studio made the application. Got authorization vk sdk. On the added webview and button. Authorization VC passes normally. In the webview, I open the site, I need to log in through it. The problem is that the site in the webview does not see that I am already authorized in VK. How to solve this problem? Thank.

  • In theory, logging in to VK via SDK you get token . It is not known what you have there on the site, but it definitely cannot automatically receive this token itself. You need to transfer it to the site somehow. How exactly - depends on the site. Perhaps you just need to attach to all requests. - Yuriy SPb
  • Can you show on some example how to send \ attach to token requests? Thank. - Michael
  • I have never tried it myself and it may depend on the site’s implementation, but you can try to pass it as a url parameter. Like this: http://site.ru?token=token_from_vk but it’s definitely a must-see site to see exactly how to do it. - Yuriy SPb
  • here is the site topcraft.ru on it I want to do automatic authorization through VK - Mikhail
  • Well, there the cookies in the headers are transmitted ... You need to somehow get them, save them and attach them to all requests via WebView. How - I don’t know, I have never done such a thing) - YuriySPb

0