we have wkwebView page which use js bridge to launch camera to take photos. some times the "webViewWebContentProcessDidTerminate:" get called ,we have to relaod the page(it don't,the page will go blankl or unresponsive),but then the user content was lost. By my experience,this is associate with memory。at the moment we take photo,the total memory useage get high more the 10~20M high. but when I don't l;aucn the camera,it's worked well. i have question about this.
how to reduce the memory useage by camera at the moment?I has already add @autoreleasepool to the take photo finish event,it's get down when finished, it has a peak but I want it keep steady。
as we know the wkwebview work in independent process,how the memory useage can affect the wk process?
any other way to prevent this? please help!
Post
Replies
Boosts
Views
Activity
in iOS12 we use WKURLSchemeHandler to handle "http" request ,but it raise the exception here is the log
if I keep the WKURLSchemeTask then the request can not be stoped,it keep loadding
above iOS13.0 every thing is ok,any help?