Getting this issue cancelling Facebook/Google login dialog. The login functionality works perfectly.
My code:
return this.facebook.login(['email', 'public_profile'])
.then(res => {
})
.catch((error) => {
// can't catch the error
console.log('error: ', error); // not displayed!
});
This only happens on mobile (Cordova). On the website works properly using Firebase ("User cancelled..."). Working code (desktop):
return this.AngularFireAuth.auth
.signInWithPopup(new firebase.auth.FacebookAuthProvider())
.then(function (res) {
})
.catch(function (error) {
// if I cancel the dialog I get the error in this case
});