Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/29.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
将Angular应用程序转换为Android应用程序后,重定向不起作用_Android_Angular - Fatal编程技术网

将Angular应用程序转换为Android应用程序后,重定向不起作用

将Angular应用程序转换为Android应用程序后,重定向不起作用,android,angular,Android,Angular,我的angular web应用程序在桌面和手机上都运行良好 但我的角度路由在将我的应用程序转换为apk后不起作用 下面是我的代码 login () { this.myaEnrolment.login() .then( () => { const redirectUri = this.formService.getData().redirectUri; if (redirectUri) {

我的angular web应用程序在桌面和手机上都运行良好

但我的角度路由在将我的应用程序转换为apk后不起作用

下面是我的代码

  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