cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [cordova-plugin-inappbrowser] koczka edited a comment on issue #566: app freeze/unresponsive if closed without pressing close button
Date Thu, 01 Oct 2020 11:06:52 GMT

koczka edited a comment 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.
   
   ```javascript
   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


Mime
View raw message