SSL error iOS

Has anyone tried getting an SSL error on iOS when there is no network and then it persists for the rest of the app’s lifetime on the phone. As in if the app is uninstalled and installed again the error is gone, but just shutting down the app and start it again keeps the error.

I can get around the error by allowing all HTTP connections in the .plist but we all know that is not a good idea.

Has anyone got a suggestion?