Skip to content

Commit

Permalink
Merge pull request #699 from modos189/fix-signup
Browse files Browse the repository at this point in the history
Fix for new sign up from Niantic
  • Loading branch information
modos189 authored Feb 14, 2024
2 parents a7d2664 + caa9d42 commit fe3a67e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ protected void onCreate(final Bundle savedInstanceState) {
mAllowedHostnames.put("google.com", googleUA);
mAllowedHostnames.put("youtube.com", googleUA);
mAllowedHostnames.put("facebook.com", mDesktopUA);
mAllowedHostnames.put("signin.nianticlabs.com", mIITCDefaultUA);

// enable progress bar above action bar
// must be called BEFORE calling parent method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,15 @@ public boolean shouldOverrideUrlLoading(final WebView view, final String url) {
}
if (uriHost.startsWith("accounts.google.") ||
uriHost.startsWith("appengine.google.") ||
uriHost.startsWith("accounts.youtube.")) {
uriHost.startsWith("accounts.youtube.") ||
uriHost.startsWith("myaccount.google.")) {
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,11 +96,18 @@ public boolean shouldOverrideUrlLoading(final WebView view, final String url) {
}
if (uriHost.startsWith("accounts.google.") ||
uriHost.startsWith("appengine.google.") ||
uriHost.startsWith("accounts.youtube.")) {
uriHost.startsWith("accounts.youtube.") ||
uriHost.startsWith("myaccount.google.") ||
uriHost.startsWith("gds.google.")) {
Log.d("popup: Google login");
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();
Expand Down

0 comments on commit fe3a67e

Please sign in to comment.