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 2021/04/07 10:10:35 UTC

[GitHub] [cordova-plugin-inappbrowser] marshall86 commented on issue #290: InAppBrowser will not destroy WebView after being closed (by invoking ref.close()) causing memory leaks

marshall86 commented on issue #290:
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/290#issuecomment-814789330


   > By analyzing the native code for IOS (of version 3.2) I found that the close event is only triggered while the browser is in the process of being hidden. If the browser is already hidden - for example through the options property - the close call method will not be called. Thus a quick fix for IOS was for me to call show() just before closing the browser:
   > 
   > `ref.show(); ref.close();`
   
   
   This solution seems to work even though it's not that nice for the user to see even for a second the browser opening and closing..
   
   Any better option? it's quite annoying


-- 
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