I'm trying to add Firebase oauth to my project, using google and facebook.
Plugins I've added to my project:
- cordova-plugin-browsertab 0.2.0 "cordova-plugin-browsertab"
- cordova-plugin-buildinfo 2.0.1 "BuildInfo"
- cordova-plugin-compat 1.2.0 "Compat"
- cordova-plugin-inappbrowser 1.7.2 "InAppBrowser"
- cordova-plugin-whitelist 1.3.3 "Whitelist"
- cordova-universal-links-plugin 1.2.1 "Universal Links Plugin"
And I'm using Android 6.2.3 as my platform right now, I'm thinking about adding iOS later.
My problem is that I'm getting auth/redirect-cancelled-by-user as response for every login request using the firebase service.
I've followed the instructions on the official tutorial. I've added:
<universal-links>
<host name="URL" scheme="https" />
<host name="package name" scheme="https">
<path url="/__/auth/callback" />
</host>
</universal-links>
Into my config.xml file.
authDomain
inpackage_name
. Also make sure your FDL domain is also added in theuniversal-links
. If you happen to use a customauthDomain
, make sure you use that one instead of the.firebaseapp.com
one. – bojeiluniversalLinks.subscribe(null, function(event) {console.log(event.url);});
– bojeil