无法使用 angular-6-social-login 在 ionic 应用程序中使用 google 登录。它在浏览器上运行良好,但在应用程序的情况下,在提供凭据后它显示白色空白页。我的代码如下
public socialSignIn(socialPlatform: string) {
let socialPlatformProvider;
if (socialPlatform == "facebooks") {
socialPlatformProvider = FacebookLoginProvider.PROVIDER_ID;
} else if (socialPlatform == "google") {
socialPlatformProvider = GoogleLoginProvider.PROVIDER_ID;
}
this.socialAuthService.signIn(socialPlatformProvider).then(
(userData) => {
this.socialUserEmail = userData.email;
this.socialId = userData.id;
this.socialName = userData.name;
this.insertsociallogindetails();
}, (error) => {
console.log(error);
alert(error);
}
);
}
请给我解决方案。