The invention relates to a glass cleaner and a control method thereof, in particular to a glass cleaner with double power sources and a control method thereof. The cleaner comprises a cleaner main control part, a walking part, a cleaning part and a power supply part; the power supply part comprises a main power source, a main-power-source discharging current detection circuit, a main-power-source voltage detection circuit, an emergency power source, an emergency-power-source discharging current detection circuit, an emergency-power-source voltage detection circuit, a main control single-chip microcomputer, a double-power-source selector switch module and the like. The control method includes the steps that current data and voltage data of the main power source are detected through the main-power-source discharging current detection circuit and the main-power-source voltage detection circuit respectively, the data is compared with a set current threshold value and a set voltage threshold value through the main control single-chip microcomputer, and whether the emergency power source is switched on through the double-power-source selector switch module or not is determined. By means of the glass cleaner and the control method, automatic switching of the double power sources can be achieved, continuous power supplying of the glass cleaner is guaranteed, the requirements of the large-area cleaning process of the glass cleaner can be met, and the glass cleaner has the advantages of being environmentally friendly in cleaning, high in intelligent degree and the like, and is easy to apply and popularize.