Add sync for WebView and app lifecycle.