An electronic device comprising: a camera ; a display configured to display an augmented reality, AR, screen ; and at least one processor functionally connected to the camera and the display , wherein the at least one processor is configured to: implement an AR function, display a menu area for selecting a category of information to be provided and for selecting an information-providing radius , obtain detailed information associated with a real object, which includes various pieces of information, based on the selected category of information and the selected information-providing radius, the real object determined to be located within the selected information-providing radius from the current location of the electronic device , determine a view direction of a user by determining an orientation of the electronic device , determine a plurality of pieces of the detailed information lying on a straight vertical line of the AR screen in the view direction of the user, group the plurality of pieces into at least one group when it is determined that the plurality of pieces are on the straight vertical line of the AR screen , generate a first type window corresponding to the plurality of pieces of the detailed information and a second type window corresponding to a single piece of the detailed information when it is determined that there is only one piece of the detailed information, wherein the first type window is distinguished from the second type window by having a different form, and display the first type window and the second type window associated to the real object on the AR screen, wherein each of the first type window or the second type window is configured to be displayed at different positions on the straight vertical line of the AR screen in view of a degree of overlapping with another first type window or another second type window on another straight vertical line of the AR screen . a camera ; a display configured to display an augmented reality, AR, screen ; and at least one processor functionally connected to the camera and the display , implement an AR function, display a menu area for selecting a category of information to be provided and for selecting an information-providing radius , obtain detailed information associated with a real object, which includes various pieces of information, based on the selected category of information and the selected information-providing radius, the real object determined to be located within the selected information-providing radius from the current location of the electronic device , determine a view direction of a user by determining an orientation of the electronic device , determine a plurality of pieces of the detailed information lying on a straight vertical line of the AR screen in the view direction of the user, group the plurality of pieces into at least one group when it is determined that the plurality of pieces are on the straight vertical line of the AR screen , generate a first type window corresponding to the plurality of pieces of the detailed information and a second type window corresponding to a single piece of the detailed information when it is determined that there is only one piece of the detailed information, wherein the first type window is distinguished from the second type window by having a different form, and display the first type window and the second type window associated to the real object on the AR screen, wherein each of the first type window or the second type window is configured to be displayed at different positions on the straight vertical line of the AR screen in view of a degree of overlapping with another first type window or another second type window on another straight vertical line of the AR screen . <EOS>