react-native-cookies
react-native-cookies copied to clipboard
Closing the app before sync in Android
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();
}