nordnet / cordova-universal-links-plugin

[DEPRECATED] - Cordova plugin to support Universal/Deep Links for iOS/Android.
https://github.com/nordnet/cordova-universal-links-plugin/issues/160
MIT License
349 stars 526 forks source link

[Cordova] Can't use authentication engine from Firebase #150

Closed namlunthkl closed 5 years ago

namlunthkl commented 6 years ago

I'm developing apps using Cordova and I've just started using Firebase services for about 1 week and I'm stucking when trying to add Authentication into my Project. I don't know why but I've followed as the references said what I have to do: https://firebase.google.com/docs/auth/web/cordova But I can't make the app redirect to the authentication URL, it doesn't redirect at any time. Here is the config file: `<?xml version='1.0' encoding='utf-8'?>

sentry A sample Apache Cordova application that responds to the deviceready event. Apache Cordova Team ` And here is the Authenticate Script: `// Initialize Firebase var config = { apiKey: "XXXXXXXXX-TQ-gcqN7QEUfGv6Wzlzg4H6t1k4F_U", authDomain: "sentry-58241.firebaseapp.com", databaseURL: "https://sentry-58241.firebaseio.com", projectId: "sentry-58241", storageBucket: "sentry-58241.appspot.com", messagingSenderId: "14137267200" }; firebase.initializeApp(config); var provider = new firebase.auth.GoogleAuthProvider(); firebase.auth().signInWithRedirect(provider).then(function() { return firebase.auth().getRedirectResult(); }).then(function(result) { var token = result.credential.accessToken; var user = result.user; }).catch(function(error) { var errorCode = error.code; var errorMessage = error.message; });` I've tested them both on my Emulator and my Android devices but there's no luck for me :( Anyone can help me with this?
ImAnAutie commented 6 years ago

It seems to be a known issue with this plugin and Phonegap Build. (im also having this issue :( )

PetersonRyan commented 5 years ago

Any fix for this yet? I haven't been able to find anything.

namlunthkl commented 5 years ago

There's no solution for this case...

nordnet-deprecation-bot commented 5 years ago

👋 Hi! Thank you for your interest in this repo.

😢 We are not using nordnet/cordova-universal-links-plugin anymore, and we lack the manpower and the experience needed to maintain it. We are aware of the inconveniece that this may cause you. Feel free to use it as is, or create your own fork.

🔒 This will now be closed & locked.

ℹ️ Please see #160 for more information.