For the complete documentation index, see llms.txt. This page is also available as Markdown.

Clear App Cache API

Clear your app cache with the WebToNative JavaScript API. Improve app performance and refresh stored data on Android and iOS.

You'll need to import the javascript file in your website before starting from this link.

To clear the cache when app is running.

window.WTN.clearAppCache(true);

Note :- If you want to reload the app after cache is cleared you can call the function with value true.

window.WTN.clearAppData(true);

Note :- To clear app data call the above function.

Parameters:

Key
Type
Description

Option

Boolean

If true, reloads the WebView after clearing. If false, the WebView is not reloaded.

Feature released on Android on 15/08/2023 Feature released on iOS on 01/03/2026 Functions updated on Android and iOS on 19/05/26

Last updated