firebase / firebaseui-web

FirebaseUI is an open-source JavaScript library for Web that provides simple, customizable UI bindings on top of Firebase SDKs to eliminate boilerplate code and promote best practices.
https://firebase.google.com/
Apache License 2.0
4.52k stars 1.04k forks source link

"Requested mobile app [...] not installed" when using OAuth #658

Open foxbunny opened 4 years ago

foxbunny commented 4 years ago

[REQUIRED] Describe your environment

[REQUIRED] Describe the problem

After selecting / logging into a Google account, and clicking the button to go back to the app, I'm presented with the following message:

The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.

In the browser, the same code works fine. This issue is Cordova-specific.

Steps to reproduce:

Note sure.

Relevant Code:

// config.xml

    <universal-links>
        <host name="myapp.page.link" scheme="https"/>
        <host name="myapp.firebaseapp.com" scheme="https">
            <path url="/__/auth/callback"/>
        </host>
    </universal-links>
    <preference name="AndroidLaunchMode" value="singleTask"/>

// package.json

  "cordova": {
    "plugins": {
      "cordova-plugin-whitelist": {},
      "cordova-plugin-x-socialsharing": {
        "ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
      },
      "cordova-plugin-buildinfo": {},
      "cordova-plugin-browsertab": {},
      "cordova-plugin-inappbrowser": {},
      "cordova-plugin-customurlscheme": {
        "URL_SCHEME": "com.firebase.cordova",
        "ANDROID_SCHEME": " ",
        "ANDROID_HOST": " ",
        "ANDROID_PATHPREFIX": "/"
      },
      "cordova-universal-links-plugin-fix": {}
    },
    "platforms": [
      "android"
    ]
  }

Android app is configured in the firebase console and SHA1 certificate fingerprint is added. I double-checked the package name to be sure that's not the issue.

whiteLT commented 3 years ago

Did you find a solution?

javier-sanchez-t commented 3 years ago

I have the same problem

Spritewrench commented 3 years ago

Experiencing the same issue and still troubleshooting. In my case, it's tied to the Firefox android browser. signInWithRedirect works in chrome but fails with the same error as OP stated in Firefox.

weixifan commented 3 years ago

Thanks for filing this issue. I've filed an internal issue b/188591279 for tracking.