Perfectly solve the problem that the page cache held by the client WebView will not be released immediately
WebView is often used in Android and apple client development. Our general practice is to add WebView to the native page.
When we destroy the page, the HTML page held by WebView will continue to exist. When we do some monitoring of mobile phone shaking and sound in the HTML page... And use js timing task.
Simply destroying our native page cannot stop the execution of these contents in the page.
Therefore, before a small meeting on the native page, set the WebView page to the blank page. The following is the Android code, and Apple's processing method is the same:
The above article perfectly solves the problem that the page cache held by the client WebView will not be released immediately. It is all the content shared by Xiaobian. I hope it can give you a reference and support more programming tips.