Skip to content

Firefox users seeing "not found" on Android, both login and logout #392

Open
@MilesAdamson

Description

@MilesAdamson

Checklist

Description

We have done a release migrating to this plugin. After releasing we are getting a lot of reports of users seeing a webpage which says "not found" on android, for both login and logout. We saw this in development as well, but after registering everything, it never happened again.

These are the steps we did to set it up:

Add product flavors so that each flavor goes to one of our auth0 setups:

    productFlavors {
        dev {
            dimension "default"
            manifestPlaceholders['auth0Domain'] = "redacted"
            manifestPlaceholders['auth0Scheme'] = "https"
        }
        qa {
            dimension "default"
            manifestPlaceholders['auth0Domain'] = "redacted"
            manifestPlaceholders['auth0Scheme'] = "https"
        }
        prod {
            dimension "default"
            manifestPlaceholders['auth0Domain'] = "redacted"
            manifestPlaceholders['auth0Scheme'] = "https"
        }
    }

Added callback URLs in all 3 auth0 setups:
image

Added the sha256 signing key to the "key hashes" section of advanced settings. For production, I took this value directly from the google play store releases section.
image

Login:

  Future<Credentials> login({String? tenant}) async {
    final credentials = await _webAuth.login(
      audience: _applicationConstants.audience,
      useEphemeralSession: true, // Do not show iOS native dialogs
      parameters: {
        if (tenant != null) "tenant": tenant,
        "prompt": "login", // Ignore the cookie and show the login page
      },
    );

    return credentials;
  }

Before releasing, we were not seeing the "not found" issue anymore on any devices, including a smoke test on production. Now that we have released this build, we are seeing a lot of support issues come up like this one:

Hi, after the update, I could not log in yesterday. I kept getting a web page saying "not found" pop up (attached screen shot). I tried entering the wrong password and it would give me the usual wrong password error message( 2nd attached screen shot). I tried deleting the app and re installing, restarting my phone, confirming my phone was running the most up to date software, and it still would give me the not found message. After about 20 attempts to log in, it did end up working. But now iam having the same issue when logging out of the app. Same not found message and it won't let me log out. I have to delete the app just to log out of the thing, but I won't because I will run into the same problem when trying to log back in.

So far we haven't been able to reduce the issue (see comment, it's firefox)

First is that it only happens to some users. If the android app link wasn't set up properly I would think it would never work for anyone, like it did during development before we fixed it. (our issue during development seen here #321 was that the sha256 was not registered in the application)

Then the other thing, they try over and over and eventually it works on the same device. This is also super weird, again I would expect it to either redirect into the app and work always or not at all.

Reproduction

Only happens sometimes, so some users.

Additional context

No response

auth0_flutter version

1.3.1

Flutter version

3.16.3

Platform

Android

Platform version(s)

No response

Metadata

Metadata

Assignees

Labels

androidfeature requestA feature has been asked for or suggested by the community

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions