The invention discloses a smart glass cleaner and a control method thereof, and relates to a glass wiping mechanism and a control method thereof. The smart glass cleaner comprises a shell component, an advancing component arranged inside the shell component, an adsorbing component, a main control component, a sensing module component, a power supply component, a cleaning component, a lifting component and a subcontrol component. The control method includes S1, powering on an electromagnet; S2, utilizing an register F1 of an advancing control module of the main control component to start to collect and latch storage position information; S3, detecting whether running to the edge or not; S4, running and wiping glass; S5, judging whether climbing is suitable or not; S6, adjusting climbing position; S7, climbing and repeating S2 until cleaning work is finished. The smart glass cleaner is capable of climbing projections such as a window frame to expand working surface, dangerous behaviors of manually cleaning outer glass can be omitted, and manpower, material and financial resources can be saved.