I'm trying to implement facebook/twitter/google+ authentication using Firebase v3 in my Ionic1 app, it works fine in the browser but it gives me this error on real devices (Android/iOS):
This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.
I think the problem is that I need to add my app's domain in the "OAuth redirect domains" section in Firebase, but my app doesn't have a domain when running on a device. (document.location.host and window.location.host are blank)
Is there a way to solve this problem?
Thanks in advance
var auth = $firebaseAuth();
facebookConnectPlugin.login(['email','public_profile','user_friends'], //first argument is an array of scope permissions
function(result){
console.log('logged into facebook');
auth.$signInWithCredential(firebase.auth.FacebookAuthProvider.credential(result.authResponse.accessToken)).then(
function(succes){
console.log('Firebase Facebook login success');
},
function(error){
console.log(error);
});
},
function(error){
console.log(error);
}
)To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/0deadd9b-43c2-467d-a807-08a87eeef615%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.