A method for an electronic device (100, 200, 730); the method comprising the steps of: while in a freeze state which is a sleep mode of an application program, receiving, by a receiver of the electronic device, an infrared light signal requesting for infrared communication from a counterpart electronic device; converting, by the receiver, the infrared light signal into an electrical signal; amplifying, by an analog processor, the electrical signal and outputting an analog signal; converting, by a digital processor, the analog signal into digital data; determining, by the digital processor, whether the digital data is valid by identifying one or more of a device type, a manufacturer, a version, and a device Identifier of the counterpart electronic device included in the digital data; in response to the digital data being determined to be valid, activating the application program in the freeze state to be in an unfreeze state which is an activity mode of the application program; transmitting the digital data to the application program; generating a notification indicating that the infrared light signal requesting for infrared communication is received, wherein the notification comprises at least one of a vibration of the electronic device generated by using a motor, and a notification sound generated by a speaker; displaying, by the application program, graphical user interface for receiving an accept with respect to performing infrared communication with the counterpart electronic device, on a display (150, 260); and in response to receiving an input for performing infrared communication on the graphical user interface, performing, by the application program, infrared communication with the counterpart electronic device using one or more of error detection/correction and backhaul information included in the digital data. while in a freeze state which is a sleep mode of an application program, receiving, by a receiver of the electronic device, an infrared light signal requesting for infrared communication from a counterpart electronic device; converting, by the receiver, the infrared light signal into an electrical signal; amplifying, by an analog processor, the electrical signal and outputting an analog signal; converting, by a digital processor, the analog signal into digital data; determining, by the digital processor, whether the digital data is valid by identifying one or more of a device type, a manufacturer, a version, and a device Identifier of the counterpart electronic device included in the digital data; in response to the digital data being determined to be valid, activating the application program in the freeze state to be in an unfreeze state which is an activity mode of the application program; transmitting the digital data to the application program; generating a notification indicating that the infrared light signal requesting for infrared communication is received, wherein the notification comprises at least one of a vibration of the electronic device generated by using a motor, and a notification sound generated by a speaker; displaying, by the application program, graphical user interface for receiving an accept with respect to performing infrared communication with the counterpart electronic device, on a display (150, 260); and in response to receiving an input for performing infrared communication on the graphical user interface, performing, by the application program, infrared communication with the counterpart electronic device using one or more of error detection/correction and backhaul information included in the digital data.