You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/10/01 11:06:40 UTC

[GitHub] [cordova-plugin-inappbrowser] koczka commented on issue #566: app freeze/unresponsive if closed without pressing close button

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