diff --git a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewClient.java b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewClient.java index 50742f65a..b3efcdf9e 100644 --- a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewClient.java +++ b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewClient.java @@ -330,6 +330,10 @@ public boolean shouldOverrideUrlLoading(final WebView view, final String url) { Log.d("Google login"); return false; } + if (uriHost.startsWith("signin.nianticlabs.")) { + Log.d("Niantic login"); + return false; + } if (mIitc.isInternalHostname(uriHost)) { Log.d("internal host"); return false; diff --git a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewPopup.java b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewPopup.java index 0c5f57fe5..07bf7024e 100644 --- a/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewPopup.java +++ b/mobile/app/src/main/java/org/exarhteam/iitc_mobile/IITC_WebViewPopup.java @@ -101,6 +101,11 @@ public boolean shouldOverrideUrlLoading(final WebView view, final String url) { openDialogPopup(); return false; } + if (uriHost.startsWith("signin.nianticlabs.")) { + Log.d("popup: Niantic login"); + openDialogPopup(); + return false; + } if (mIitc.isInternalHostname(uriHost)) { Log.d("popup: internal host"); openDialogPopup();