reconnect on os task switch with pageshow event