Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem related to nativescript redirect after login process #162

Open
eduardocalixtokorp opened this issue May 31, 2021 · 3 comments
Open

Comments

@eduardocalixtokorp
Copy link

eduardocalixtokorp commented May 31, 2021

Which platform(s) does your issue occur on?

  • Android
  • Android versions 7, 7.1, 8
  • Both emulator and device

Please, provide the following version numbers that your issue occurs with:

[email protected]

  • CLI: 7.0.11

  • Plugin(s):

"dependencies": {
    "@angular/animations": "~10.1.0",
    "@angular/common": "~10.1.0",
    "@angular/compiler": "~10.1.0",
    "@angular/core": "~10.1.0",
    "@angular/forms": "~10.1.0",
    "@angular/platform-browser": "~10.1.0",
    "@angular/platform-browser-dynamic": "~10.1.0",
    "@angular/router": "~10.1.0",
    "@danvick/ngx-translate-nativescript-loader": "^3.0.0",
    "@nativescript-community/sentry": "^2.0.8",
    "@nativescript-community/ui-pager": "13.0.0-alpha.14",
    "@nativescript/angular": "10.1.7",
    "@nativescript/core": "7.0.13",
    "@nativescript/datetimepicker": "^2.0.4",
    "@nativescript/theme": "~2.3.0",
    "@nativescript/unit-test-runner": "^1.0.2",
    "@ngx-translate/core": "^13.0.0",
    "@ngx-translate/http-loader": "^6.0.0",
    "@nstudio/nativescript-cardview": "^2.0.0",
    "@nstudio/nativescript-loading-indicator": "^4.0.0",
    "angular2-uuid": "^1.1.1",
    "http-mockserver": "^2.2.2",
    "jwt-decode": "^3.1.2",
    "nativescript-barcodescanner": "^3.4.2",
    "nativescript-oauth2": "^3.0.3",
    "nativescript-speech-recognition": "^1.5.0",
    "nativescript-sqlite": "^2.6.3",
    "nativescript-toasty-ns-7": "^14.0.0",
    "nativescript-ui-calendar": "^7.0.2",
    "nativescript-ui-chart": "^8.0.2",
    "nativescript-ui-listview": "9.0.4",
    "nativescript-ui-sidedrawer": "9.0.2",
    "nativescript-urlhandler": "^1.3.0",
    "reflect-metadata": "~0.1.12",
    "rxjs": "^6.6.0",
    "zone.js": "~0.11.1"
  },
  "devDependencies": {
    "@angular/compiler-cli": "~10.1.0",
    "@nativescript/android": "7.0.1",
    "@nativescript/ios": "7.0.6",
    "@nativescript/types": "~7.0.0",
    "@nativescript/webpack": "~3.0.0",
    "@ngtools/webpack": "~10.1.0",
    "@types/jasmine": "3.5.14",
    "@types/node": "~10.12.18",
    "jasmine": "~3.3.1",
    "jasmine-core": "~3.3.0",
    "jasmine-spec-reporter": "~4.2.1",
    "json-server": "^0.16.3",
    "karma": "5.2.3",
    "karma-jasmine": "4.0.1",
    "karma-nativescript-launcher": "0.4.0",
    "karma-webpack": "3.0.5",
    "nativescript-dev-appium": "6.1.3",
    "typescript": "~3.9.0"
  }

Please, tell us how to recreate the issue in as much detail as possible.

It happens when you do the following:

  1. Log in using web view;
  2. Log out
  3. Log in again
    After the 2nd log in, the app call the this.routerExtensions.navigate('/ROUTE') but nothing happens. Based on console logs, I notice that the correct component loads, but it's not being showed in screen. I also notice that the old component (before login happened) ngOnDestroy is not being called.

I would appreciate any help, mainly because we're publishing our app as soon as possible

@juniorschen
Copy link

@eduardocalixtokorp I experienced the same problem, but it only occurred on android versions < 10. Unfortunately it's not a good margin to cut android 8 and 9 yet...

@eduardocalixtokorp
Copy link
Author

In the gif below, I show the process in angular demo.
final_60b62df657305100f865d2d3_596217

  1. I click in logout button, then logout page loads and closes (logout happened)
  2. I try to login over again (filling my login/password and confirming login)
  3. LoginWithCompletion is called back and a navigation event happens, but the screen doesn't change at all.
  4. I try to click on login button over again, but even if callback was called, nothing happens again

PS: Sorry for editing it, but I can't show anything related to url/login server
PS 2: I am using Identity Server to test it in this example.

@eduardocalixtokorp
Copy link
Author

@eduardocalixtokorp I experienced the same problem, but it only occurred on android versions < 10. Unfortunately it's not a good margin to cut android 8 and 9 yet...

Yes, it's the same for me. Only happens in 7, 7.1 and 8. I didn't test it in < 7 versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants