koczka commented on issue #566:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/566#issuecomment-702060366
I got a solution.
In my case, I was using the iab, to show a login portal, from an identity provider (SSO
login), and when I got redirected with the user data, I'd navigate the user to the logged
in home screen.
The only modification I needed to do in my code, is to wrap the `router.navitage` method
in a `ngZone.run` block.
typescript```
this.ngZone.run(() => {
browser.close();
this.router.navigate(['/home'], { replaceUrl: true });
});
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org
|