There are a few more questions / answers on this section , but they have not used Firebase with Ionic. I just switched to the new Ionic View and right now, my application in the old Ionic View is working, while the new Ionic View gives me this known error:
403 Error is an error. Error: disallowed_useragent its user agent is not allowed to make an OAuth authorization request on Google as it is classified as a built-in user agent (also known as a web view). blah blah blah
In my code, I add Firebase AuthProvider and use angularfire2 to connect, and it looks like
private getProvider(from: string): AuthProvider {
switch (from) {
case 'twitter': return new firebase.auth.TwitterAuthProvider();
case 'facebook': return new firebase.auth.FacebookAuthProvider();
case 'github': return new firebase.auth.GithubAuthProvider();
case 'google': return new firebase.auth.GoogleAuthProvider();
}
}
signIn(from: string) {
this.afAuth.auth.signInWithPopup(this.getProvider(from))
. . .
, , Ionic View. OAuth, , Firebase , .
Firebase auth iOS/Android Ionic?