I have an Xamarin application that uses Entity Framework.
It works great on UWP however when on iOS if I lock the phone, then unlock minutes later I get the following error when loading data from or to the database:
Snix_Execute (provider: SNI_PN7, error: 35 - SNI_ERROR_35) Snix_Execute (provider: SNI_PN7, error: 35 - SNI_ERROR_35)
With an inner exception of:
Unable to write data to the transport connection: The socket has been shut down.
I think it's to do with iOS closing the connection as part of cleanup but how do I reopen the connection? What other information can I provide to help solve this issue? I know I can use the OnResume method to reopen the connection but what's the code to actually reopen the connection?