I have a webview in my android app which loads a website which has a google login button. When login button is pressed it opens a browser and after signing in it gets stuck in a page which prompts "One moment please". Why is it getting stuck in that page and not redirecting to the app?
Add a close button and on its click set: webview. setVisibility(View. INVISIBLE); webview.
You might often face issues in updating the chrome and Android System Webview. To fix this problem, you can reboot your device, check your internet connection, stop auto-updating all apps, clear Google Playstore cache, and storage, leave the beta testing program, and manually update Android WebView app from Playstore.
Open Play Store on your device, search for Android System WebView and click on it. Now you can see the option of Disable, press it, the app is now disabled.
This interface was deprecated in API level 12. This interface is now obsolete.
First of all use this setting for your webview :
WebView vistaWeb = (WebView) findViewById(R.id.webview);
vistaWeb.setWebChromeClient(new MyCustomChromeClient(this));
vistaWeb.setWebViewClient(new MyCustomWebViewClient(this));
vistaWeb.clearCache(true);
vistaWeb.clearHistory();
vistaWeb.getSettings().setJavaScriptEnabled(true);
vistaWeb.getSettings().setJavaScriptCanOpenWindowsAutomatically(true);
Then if that wasn't quit the answer, use a library from github webview library or use Chrome custom tab.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With