1
I have a webview on android that always checks if there is internet when returning from the background checking if the connection status has been changed if it is offline the app sends the user to a screen "reconnect and try again" using the code below:
protected void onResume() {
super.onResume();
mWebView.onResume();
if (isConnected(getApplicationContext())){
} else {
Intent i = new Intent(MainActivity.this, off.class);
startActivity(i);
overridePendingTransition(android.R.anim.fade_in, android.R.anim.fade_out);
finish();
}
}
So far so good I made an Ios version of this webview but I could not play this check when the app returns in the background, how do I play this "onresume" on Ios Swift? (the code checking the connection status I already have)