Closed nxd037 closed 4 years ago
Adding network plugins to detect network changes, fixed case number 2. Sending a ping to server to keep the connection open, fixed case number 3.
I'm closing this issue, I'm still looking for a better way to handle the three cases above.
Thank you for big support.
I'm facing an issue in connecticity while the server device goes into three cases: 1- App goes in the background. (fixed) 2- App lost wifi and reconnected to same network. 3- App has been on for long time.
On failure does not detect any of the above.
To fix #1 I used Event - Resume then force the server to close and reconnect.
(The resume event fires when the native platform pulls the application out from the background) .
Is there a passable solution to detect whether the server is live?
Im using ionic 5 cordova on iOS.