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 Fri, 02 Oct 2020 06:34:30 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 inside the ionic app.
   
   The only modification I needed to do in my code, is to wrap the `router.navitage` method
in a `ngZone.run` block.
   So in my case it wasn't the plugin, it was angular that caused the behaviour.
   
   ```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