Answer the question
In order to leave comments, you need to log in
How to implement VK authorization on Android?
I'm trying to log in to VK using OAuth, but the WebView has a black screen instead of the OAuth authorization dialog. With other URLs WebView works fine.
WebView wbWebView = (WebView)findViewById(R.id.wvWebView);
wbWebView.getSettings().setJavaScriptEnabled(true);
wbWebView.setWebViewClient(new VkWebView());
wbWebView.loadUrl("https://oauth.vk.com/authorize?client_id=4439464&scope=friends,wall&redirect_uri=https://oauth.vk.com/blank.html&display=mobile&v=5.21&response_type=token");
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question