# Zoom SDK Clears WKWebView localStorage

**URL:** <https://devforum.zoom.us/t/zoom-sdk-clears-wkwebview-localstorage/79559>\
**Category:** iOS\
**Tags:** faq-ios, api\
**Created:** [November 30, 2022, 7:55pm UTC](https://devforum.zoom.us/t/zoom-sdk-clears-wkwebview-localstorage/79559 "2022-11-30T19:55:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mistermark](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/mistermark/32/42988_2.png) [@mistermark](https://devforum.zoom.us/u/mistermark)\
**Post date:** [November 30, 2022, 7:55pm UTC](https://devforum.zoom.us/t/zoom-sdk-clears-wkwebview-localstorage/79559/1 "2022-11-30T19:55:09Z")

</div>

**Description**  
I work on an app that utilizes `WKWebView` during Zoom meetings. The `WKWebView` `localStorage` is also utilized, so the client can present information on the web view based off of the data in the `localStorage`. Ever since the upgrade to the new SDK, the behavior has been disabled. After looking into it, I found that the call to `[MobileRTCMeetingService leaveMeetingWithCmd:LeaveMeetingCmd_End]` is what is causing the `localStorage` data to be cleared. I’ve tried using a unique process pool for my web views, but that didn’t fix the issue. How can I disable this SDK behavior of clearing the `localStorage`?

**Which iOS Meeting SDK version?**  
5.11.2.3958

**Screenshots**  
Here is the code used to access the local storage data immediately before and after the meeting is ended.

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [December 2, 2022, 10:11am UTC](https://devforum.zoom.us/t/zoom-sdk-clears-wkwebview-localstorage/79559/2 "2022-12-02T10:11:05Z")

</div>

Hi @mistermark ,  
We have a interface in MobileRTCMeetingSetting.h, you can try it.

```auto
/*!
@brief Query if the action of clear WebView's cache be disabled.
 @return Action of clear WebView's cache is disabled or not.
*/
- (BOOL)isDisabledClearWebKitCache;

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [January 1, 2023, 8:11pm UTC](https://devforum.zoom.us/t/zoom-sdk-clears-wkwebview-localstorage/79559/3 "2023-01-01T20:11:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
