Reply To: Persistent Cache and Data

Welcome! Forums Unity Plugins In-App Web Browser Persistent Cache and Data Reply To: Persistent Cache and Data

#1727
TheDemitrius
Participant

Hi Piotr,

I want to add local storage support that will last after the app is closed.

I think that on iOS this is done by adding:

void _OpenInAppBrowser(char *URL, struct DisplayOptions displayOptions) {
        [[NSUserDefaults standardUserDefaults] setBool:YES forKey:@"WebKitStoreWebDataForBackup"];
        NSString *urlAsString = [NSString stringWithUTF8String:URL];
        _ShowURLWithDisplayOptions(urlAsString, displayOptions);
    }

But I don’t know how to add this to Android