Hi all,
i have a problem when run my app with ‘ionic cordova run android --device’. The Facebbok loggin run correctly in web, but in my android device have this error: '‘to use this url you must add a valid native plataform in you app’s settings’
I have the plataform for android correctly, but not run.
Someone can help me?
It’s my code
if (this.platform.is('cordova')) {
//plugin de ionic http://ionicframework.com/docs/native/facebook/
return this.fb.login(['email', 'public_profile']).then(res => {
const facebookCredential = firebase.auth.FacebookAuthProvider.credential(res.authResponse.accessToken);
return firebase.auth().signInWithCredential(facebookCredential);
})
}
else {
return this.afAuth.auth
//.signInWithPopup(new firebase.auth.FacebookAuthProvider())
.signInWithRedirect(new firebase.auth.FacebookAuthProvider())
.then(res => {
debugger;
console.log(res);
}
)
.catch(ex => {
debugger;
console.error(ex)
});
}
``
Thx