Post

Replies

Boosts

Views

Activity

how to prevernt "webViewWebContentProcessDidTerminate:"happen?
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!
1
0
1.8k
Dec ’22