When I try to log into my web application while testing on my Android phone, I get this message:
"firebase.js: 75 Uncaught Error: this operation is not supported in the environment in which this application is running." location.protocol "must be http or https .."
I added my firebase code to a valid OAuth redirect URI in my fb application - https: //.firebaseio.com/ I added the application identifier and name to firebase in the auth section. Am I missing something? thank
I am using chrome remote debugging here: file: ///android_asset/www/index.html#/app/people
Maybe that's why he raises the fuss?
var provider = new firebase.auth.FacebookAuthProvider();
console.log(provider);
firebase.auth().signInWithPopup(provider).then(function(result) {
var token = result.credential.accessToken;
var user = result.user;
console.log(user, token);
UserService.setUser(user, token);
}).catch(function(error) {
var errorCode = error.code;
var errorMessage = error.message;
var email = error.email;
var credential = error.credential;
console.log(errorCode);
});