将Angular应用程序转换为Android应用程序后,重定向不起作用
我的angular web应用程序在桌面和手机上都运行良好 但我的角度路由在将我的应用程序转换为apk后不起作用 下面是我的代码将Angular应用程序转换为Android应用程序后,重定向不起作用,android,angular,Android,Angular,我的angular web应用程序在桌面和手机上都运行良好 但我的角度路由在将我的应用程序转换为apk后不起作用 下面是我的代码 login () { this.myaEnrolment.login() .then( () => { const redirectUri = this.formService.getData().redirectUri; if (redirectUri) {
login () {
this.myaEnrolment.login()
.then(
() => {
const redirectUri = this.formService.getData().redirectUri;
if (redirectUri) {
window.location.href = redirectUri;
} else {
this.invokeLogin();
}
},
() => {
this.invokeLogin();
}
);
}
invokeLogin () {
this.taggingService.tagEvent('login', null, 'onclick');
if (this.action) {
this.navigationService.navigateByUri('/enrol/cid/login');
} else {
window.location.href = window.location.origin + '/oauthcust/oauth/authorize?scope=logon-type:response_type=code&fallback=true';
}
}
在我的手机里,我发现了这个错误
Error from SDK due to incorrect details