I’m using ionic v 3
There is a error using the firebase.auth().signInWithPopup on mobile
devices. The popup appears for a quick second and then disappears. But it’s work smoothly when running in browser.
Your OP confuses me. You mention popup, but your code uses redirect. So I guessed that the code you were using was different from the code you posted. This often happens – people say their code isn’t working, and then they don’t post the part of their code that doesn’t work.
You can almost copypaste the code in the link I provided.
Nothing happens when click the button, in browser it redirect to a blank white screen, in mobile nothing happens,
loginGoogle() {
var provider = new firebase.auth.GoogleAuthProvider();
provider.addScope('https://www.googleapis.com/auth/contacts.readonly');
firebase.auth().signInWithRedirect(provider);
firebase.auth().getRedirectResult().then(function (result) {
if (result.credential) {
// This gives you a Google Access Token. You can use it to access the Google API.
var token = result.credential.accessToken;
// ...
}
// The signed-in user info.
var user = result.user;
}).catch(function (error) {
});
}
Now it perfectly redirect to the google account selector, but when select it give me a white screen with this sentence, mobile app identifier is not registered for the current project
If someone is accessing the website through a browser on their phone all the afore mentioned issues arise. But accessing the site on a desktop presents no issue when using signinWithPopup().