Skip to content

Commit

Permalink
Fix for new sign up from Niantic
Browse files Browse the repository at this point in the history
  • Loading branch information
modos189 committed Feb 13, 2024
1 parent a800b37 commit 35bd4f0
Show file tree
Hide file tree
Showing 3 changed files with 14 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,17 @@ 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("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 35bd4f0

Please sign in to comment.