1 firebase firebase-authentication ionic3 angular
auth.ts
signInWithGoogle(): firebase.Promise<any> {
return this.afAuth.auth.signInWithRedirect(new firebase.auth.GoogleAuthProvider());}
Run Code Online (Sandbox Code Playgroud)
登录.ts
loginGoogle() {
this.authData.signInWithGoogle().then(() => {
this.navCtrl.push(TabsPage);
}, error => {
this.presentToast("Invalid user details");
});}
Run Code Online (Sandbox Code Playgroud)
打开谷歌帐户选择器和应用程序在移动设备中顺利运行时从列表中选择和帐户进行身份验证它会显示一条消息
当前项目未注册移动应用标识符
消息显示:
请帮我解决这个问题。谢谢!
| 归档时间: |
|
| 查看次数: |
1437 次 |
| 最近记录: |