Open immocalcul opened 4 years ago
For some time when I try to use the connection with google on ios. My Application crash returns this error code to me. On Android all is fine though this is my code:
--------------------html------------------------------------------------------------ <StackLayout ripple rippleColor="#4d4d4d" orientation="horizontal" class="boutton-connexion-page" (tap)="GoogleConfirmDialog()">
<Label text="{{ 'login.connexionGoogle' | L }}" class="linebutton"></Label> </StackLayout>
--------------------ts------------------------------------------------------------ GoogleConfirmDialog() { this.authService.loginGoogle().then(res => { this.loadingService.showLoading(); this.routerExtension.navigate(['../tabs/default']).then(res => this.loadingService.hideLoading()) }).catch(res => { if (res === "An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.") { dialogs.alert({ title: localize("login.error.alert"), message: localize("login.error.facebook"), okButtonText: "OK" }); } else { dialogs.alert({ title: localize("login.error.alert"), message: localize("login.error.error"), okButtonText: "OK" }); } this.routerExtension.navigate(['login']);
});
} --------------auth-------------------------------------------------------------- //Google login loginGoogle() { return firebase.login({ type: firebase.LoginType.GOOGLE }).then( result => { appSettings.setString("access_token", result.uid); }); }
getUser() { return appSettings.getString("access_token"); }
-------------xcode error-----------------------------------------------------
[TNSRuntimeInstrumentation profile:@"Debug: Wait for JavaScript debugger" withBlock:^{ TNSEnableRemoteInspector(argc, argv, runtime); return (id)nil; }];
TNSInstallExceptionHandler(); return runtime; }];
[runtime executeModule:@"./"]; Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
return 0; } }
The error log is unclear or incomplete, please share a sample project where the issue can be reproduced.
For some time when I try to use the connection with google on ios. My Application crash returns this error code to me. On Android all is fine though this is my code:
--------------------html------------------------------------------------------------ <StackLayout ripple rippleColor="#4d4d4d" orientation="horizontal" class="boutton-connexion-page" (tap)="GoogleConfirmDialog()">
--------------------ts------------------------------------------------------------ GoogleConfirmDialog() { this.authService.loginGoogle().then(res => { this.loadingService.showLoading(); this.routerExtension.navigate(['../tabs/default']).then(res => this.loadingService.hideLoading()) }).catch(res => { if (res === "An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.") { dialogs.alert({ title: localize("login.error.alert"), message: localize("login.error.facebook"), okButtonText: "OK" }); } else { dialogs.alert({ title: localize("login.error.alert"), message: localize("login.error.error"), okButtonText: "OK" }); } this.routerExtension.navigate(['login']);
} --------------auth-------------------------------------------------------------- //Google login loginGoogle() { return firebase.login({ type: firebase.LoginType.GOOGLE }).then( result => { appSettings.setString("access_token", result.uid); }); }
getUser() { return appSettings.getString("access_token"); }
-------------xcode error-----------------------------------------------------
if DEBUG
[TNSRuntimeInstrumentation profile:@"Debug: Wait for JavaScript debugger" withBlock:^{ TNSEnableRemoteInspector(argc, argv, runtime); return (id)nil; }];
endif
TNSInstallExceptionHandler(); return runtime; }];
[runtime executeModule:@"./"]; Thread 1: EXC_BAD_ACCESS (code=1, address=0x0)
return 0; } }