0 Replies
      Latest reply on May 14, 2019 4:02 AM by LaoBai
      LaoBai Level 1 Level 1 (0 points)

        Is there any way to trigger WKWebView garbage collection through native code or js code manually?


        I'm using WKWebView build 3D application. The WKWebView is easy to be terminated by system due to memory pressure. When js side alloc/ dealloc memory often and the garbage collection not executed in time, the wkWebView will be teriminated frequently. When I tigger gc through safari devtools, the memory usage will be decrease. So is there any way to tigger gc through native code?