However, in the case in which an application is required to exchange data in real time with a server, execution of the application may be stopped or should be restarted due to the communication networks switching, which inconveniences the user. Only when a stable mobility support function is provided while using the application may the user enjoy a continuous and practical mobile environment. Accordingly, it is required for an application that needs to transmit and receive data in real time to provide a seamless data service.
An aspect of various embodiments of the present disclosure is to provide a method of controlling a communication network connection optimized for executing an application, and an electronic device for the same.
Another aspect of various embodiments of the present disclosure is to provide a method of limiting Wi-Fi network access according to an application type and an electronic device for the same.
In accordance with an aspect of the present disclosure, an electronic device is provided. The electronic device includes: a display; a first communication module configured to perform communication through a first communication network; a second communication module configured to perform communication through a second communication network; a memory; and a processor electrically connected to the memory, wherein the memory stores instructions causing the processor to, when executed, deactivate the second communication module while a predetermined application is executed using the first communication module, in a state in which both the first communication module and the second communication module, having a higher priority than the first communication module, are activated.