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/03/22 09:44:19 UTC

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

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


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