react-native-cookies icon indicating copy to clipboard operation
react-native-cookies copied to clipboard

Closing the app before sync in Android

Open gonfva opened this issue 8 years ago • 0 comments

1.-Clear all the cookies. 2.-Immediately (before the cookie manager has synced), close the app. 3.-Next time you open the app, the cookie is still there

This is probably an issue with the underlying react-native component. See the comment in

https://github.com/facebook/react-native/blob/master/ReactAndroid/src/main/java/com/facebook/react/modules/network/ForwardingCookieHandler.java#L33

Would you consider something like

    @ReactMethod
    public void clearAndPersist() {
        this.cookieHandler.destroy();
    }

gonfva avatar Feb 26 '16 17:02 gonfva